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

Added overflow and generic exception handling for checkpoint plot

parent 5f4f995b
No related branches found
No related tags found
1 merge request!902Resolve "Matplotlib error at dynesty checkpoint plot"
Pipeline #172302 passed
......@@ -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:
......
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