Commit 7e633b01 authored by Moritz Huebner's avatar Moritz Huebner
Browse files

Merge branch '476-failure-to-create-dynesty-run-plot-at-checkpoint' into 'master'

Resolve "Failure to create dynesty run plot at checkpoint"

Closes #476

See merge request !761
parents dc202662 07290f73
Pipeline #121314 passed with stages
in 6 minutes and 53 seconds
......@@ -433,6 +433,8 @@ class Dynesty(NestedSampler):
sampler_kwargs['add_live'] = True
self._run_nested_wrapper(sampler_kwargs)
self.write_current_state()
self.plot_current_state()
return self.sampler.results
def _remove_checkpoint(self):
......@@ -577,7 +579,8 @@ class Dynesty(NestedSampler):
plt.close("all")
try:
filename = "{}/{}_checkpoint_run.png".format(self.outdir, self.label)
fig, axs = dyplot.runplot(self.sampler.results)
fig, axs = dyplot.runplot(
self.sampler.results, logplot=False, use_math_text=False)
fig.tight_layout()
plt.savefig(filename)
except (RuntimeError, np.linalg.linalg.LinAlgError, ValueError) as e:
......
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