Skip to content

Fix for MultivariateGaussianDist for 1d cases

Matthew Pitkin requested to merge matthew-pitkin/bilby:mvn_1d_fix into master

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.

Merge request reports