Skip to content
Snippets Groups Projects

Resolve "Problem merging results due to inconsistent priors"

Merged Matthew David Pitkin requested to merge matthew-pitkin/bilby:hdf5_prior_output into master
2 files
+ 25
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 3
0
@@ -68,6 +68,9 @@ class Prior(object):
if sorted(self.__dict__.keys()) != sorted(other.__dict__.keys()):
return False
for key in self.__dict__:
if key == "least_recently_sampled":
# ignore sample drawn from prior in comparison
continue
if type(self.__dict__[key]) is np.ndarray:
if not np.array_equal(self.__dict__[key], other.__dict__[key]):
return False
Loading