Skip to content
Snippets Groups Projects

Fix for MultivariateGaussianDist for 1d cases

Merged Matthew David Pitkin requested to merge matthew-pitkin/bilby:mvn_1d_fix into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -2922,7 +2922,7 @@ class MultivariateGaussianDist(object):
# sample the multivariate Gaussian keys
vals = np.random.uniform(0, 1, len(self))
samp = self.rescale(vals, mode=mode)
samp = np.atleast_1d(self.rescale(vals, mode=mode))
samps[i, :] = samp
# check sample is in bounds (otherwise perform another draw)
Loading