Skip to content
Snippets Groups Projects
Commit 3894928f authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Merge branch 'dynesty_traceplot_error' into 'master'

Catch ValueError raise by dynesty resample_equal function

See merge request lscsoft/bilby!585
parents 25539b62 3419800a
No related branches found
No related tags found
No related merge requests found
......@@ -431,7 +431,7 @@ class Dynesty(NestedSampler):
fig.tight_layout()
fig.savefig(filename)
plt.close('all')
except (RuntimeError, np.linalg.linalg.LinAlgError) as e:
except (RuntimeError, np.linalg.linalg.LinAlgError, ValueError) as e:
logger.warning(e)
logger.warning('Failed to create dynesty state plot at checkpoint')
......
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