Commit d57b7ebb authored by Moritz Huebner's avatar Moritz Huebner

Merge branch '546-matplotlib-error-at-dynesty-checkpoint-plot' into 'master'

Resolve "Matplotlib error at dynesty checkpoint plot"

Closes #546

See merge request lscsoft/bilby!902
parents 19c6ba26 6c1a1164
......@@ -612,7 +612,7 @@ class Dynesty(NestedSampler):
fig = dyplot.traceplot(self.sampler.results, labels=labels)[0]
fig.tight_layout()
fig.savefig(filename)
except (RuntimeError, np.linalg.linalg.LinAlgError, ValueError) as e:
except (RuntimeError, np.linalg.linalg.LinAlgError, ValueError, OverflowError, Exception) as e:
logger.warning(e)
logger.warning('Failed to create dynesty state plot at checkpoint')
finally:
......
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