Fix for MultivariateGaussianDist for 1d cases
Compare changes
+ 1
− 1
@@ -2922,7 +2922,7 @@ class MultivariateGaussianDist(object):
Maintenance will be performed on git.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 1 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.
If using the MultivariateGaussianDist
to set a one dimensional prior, e.g., using it to set a multi-modal distribution on a single parameter, the sample
method currently fails. This MR fixes the failure by making sure that the samples that are created are 1d arrays.