Skip to content
Snippets Groups Projects

Resolve #430 (Add normalisation flag to constrained prior)

Merged Resolve #430 (Add normalisation flag to constrained prior)
All threads resolved!
Merged Bruce Edelman requested to merge bruce.edelman/bilby:constraint into master
All threads resolved!
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
+ 1
2
@@ -41,7 +41,7 @@ class PriorDict(dict):
self.from_file(filename)
elif dictionary is not None:
raise ValueError("PriorDict input dictionary not understood")
self._cached_normalizations= {}
self._cached_normalizations = {}
self.convert_floats_to_delta_functions()
@@ -390,7 +390,6 @@ class PriorDict(dict):
if len(keep) == 1:
return 1
all_samples = {key: np.array([]) for key in keys}
_first_key = list(all_samples.keys())[0]
while np.count_nonzero(keep) < min_accept:
samples = self.sample_subset(keys=keys, size=sampling_chunk)
for key in samples:
Loading