Skip to content
Snippets Groups Projects
Commit 1cd1b611 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Merge branch 'cpnest_nested_samples' into 'master'

Resolve "cpnest nested_samples not set properly"

Closes #429

See merge request !645
parents 957c7fbe f0cb819b
No related branches found
No related tags found
1 merge request!645Resolve "cpnest nested_samples not set properly"
Pipeline #89633 passed
......@@ -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