From 07290f73e68aaf7be354892212abf3523c484c6e Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Thu, 23 Apr 2020 18:09:38 -0500 Subject: [PATCH] Resolve "Failure to create dynesty run plot at checkpoint" --- bilby/core/sampler/dynesty.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bilby/core/sampler/dynesty.py b/bilby/core/sampler/dynesty.py index 688efc417..8944d43d2 100644 --- a/bilby/core/sampler/dynesty.py +++ b/bilby/core/sampler/dynesty.py @@ -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: -- GitLab