Skip to content
Snippets Groups Projects
Commit fd5315e1 authored by Colm Talbot's avatar Colm Talbot
Browse files

Add dynesty unit plot

parent 0437e0b1
No related branches found
No related tags found
No related merge requests found
......@@ -615,6 +615,19 @@ class Dynesty(NestedSampler):
logger.warning('Failed to create dynesty state plot at checkpoint')
finally:
plt.close("all")
try:
filename = "{}/{}_checkpoint_trace_unit.png".format(self.outdir, self.label)
from copy import deepcopy
temp = deepcopy(self.sampler.results)
temp["samples"] = temp["samples_u"]
fig = dyplot.traceplot(temp, labels=labels)[0]
fig.tight_layout()
fig.savefig(filename)
except (RuntimeError, np.linalg.linalg.LinAlgError, ValueError, OverflowError, Exception) as e:
logger.warning(e)
logger.warning('Failed to create dynesty unit state plot at checkpoint')
finally:
plt.close("all")
try:
filename = "{}/{}_checkpoint_run.png".format(self.outdir, self.label)
fig, axs = dyplot.runplot(
......
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