Commit bdef7437 authored by Philipp Arras's avatar Philipp Arras
Browse files

Simplification for do_adjust_variances

parent cb31d136
......@@ -78,11 +78,15 @@ def make_adjust_variances(a,
return Hamiltonian(InverseGammaLikelihood(d_eval)(x), ic_samp=ic_samp)
def do_adjust_variances(position, xi, amplitude_model, minimizer, samples=[]):
h_space =[0]
def do_adjust_variances(position,
h_space = position[xi_key].domain[0]
pd = PowerDistributor(h_space,[0])
a = pd(amplitude_model)
xi = FieldAdapter(MultiDomain.make({"xi": h_space}), "xi")
xi = FieldAdapter(MultiDomain.make({xi_key: h_space}), xi_key)
axi_domain = MultiDomain.union([a.domain, xi.domain])
ham = make_adjust_variances(
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment