Skip to content
Snippets Groups Projects
Commit fd028a62 authored by Moritz Huebner's avatar Moritz Huebner
Browse files

Merge branch 'fix-dynesty-checkpoint-plotting' into 'master'

remove truth values from checkpoint plots

See merge request !475
parents 400343a2 0991a559
No related branches found
No related tags found
1 merge request!475remove truth values from checkpoint plots
Pipeline #60224 passed with warnings
......@@ -401,11 +401,7 @@ class Dynesty(NestedSampler):
labels = [label.replace('_', ' ') for label in self.search_parameter_keys]
filename = "{}/{}_checkpoint_trace.png".format(self.outdir, self.label)
try:
truths = None
if self.injection_parameters is not None:
truths = [self.injection_parameters[key] for key in self.search_parameter_keys]
fig = dyplot.traceplot(self.sampler.results, labels=labels,
truths=truths)[0]
fig = dyplot.traceplot(self.sampler.results, labels=labels)[0]
fig.tight_layout()
fig.savefig(filename)
plt.close('all')
......
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