Skip to content
Snippets Groups Projects

HealPixPrior (Resloves Issue #419)

Merged Bruce Edelman requested to merge bruce.edelman/bilby:joint_prior into master
Compare and Show latest version
3 files
+ 16
10
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 3
7
@@ -284,7 +284,7 @@ class BaseJointPriorDist(object):
An vector sample drawn from the multivariate Gaussian
distribution.
"""
samp = np.asarray(value)
samp = np.array(value)
if len(samp.shape) == 1:
samp = samp.reshape(1, self.num_vars)
@@ -360,8 +360,8 @@ class MultivariateGaussianDist(BaseJointPriorDist):
+/- infinity.
"""
super(MultivariateGaussianDist, self).__init__(names=names, bounds=bounds)
for name in names:
bound = bounds[name]
for name in self.names:
bound = self.bounds[name]
if bound[0] != -np.inf or bound[1] != np.inf:
logger.warning("If using bounded ranges on the multivariate "
"Gaussian this will lead to biased posteriors "
@@ -378,10 +378,6 @@ class MultivariateGaussianDist(BaseJointPriorDist):
self.sqeigvalues = [] # square root of the eigenvalues
self.mvn = [] # list of multivariate normal distributions
self._current_sample = {} # initialise empty sample
self._uncorrelated = None
self._current_lnprob = None
# put values in lists if required
if nmodes == 1:
if mus is not None:
Loading