Skip to content
Snippets Groups Projects
Commit f0cb819b authored by Bruce Edelman's avatar Bruce Edelman Committed by Gregory Ashton
Browse files

generalized the JointPrior object structure from Matthew Pitkin's...

generalized the JointPrior object structure from Matthew Pitkin's MutlivariateGaussian prior formalism. TODO: add in the joint MapPrior for HEALPix priors
parent 957c7fbe
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,7 @@ class Cpnest(NestedSampler):
inplace=True)
_, log_weights = compute_weights(np.array(self.result.nested_samples.log_likelihood),
np.array(out.NS.state.nlive))
self.result.nested_samples.weights = np.exp(log_weights)
self.result.nested_samples['weights'] = np.exp(log_weights)
self.result.log_evidence = out.NS.state.logZ
self.result.log_evidence_err = np.sqrt(out.NS.state.info / out.NS.state.nlive)
return self.result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment