Bugfix crash when bilby_mcmc attempts to produce diagnostic histograms for parameters with infinte values
Compare changes
+ 13
− 5
@@ -412,12 +412,20 @@ class Chain(object):
Maintenance will be performed on git.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 22 April 2025 starting at approximately 9am PDT. It is expected to take around 30 minutes and there will be several periods of downtime throughout the maintenance. Please address any comments, concerns, or questions to the helpdesk. This maintenance will be upgrading the GitLab database in order to be ready for the migration.
I ran into an error while testing that there would be fatal errors while producing these histograms when the parameters in question had some infinite values.
Naturally that's a bad thing on its own, but it should at least not cause the sampler to crash in the process, so this checks for that and simply doesn't plot them if infinite values are present.