Skip to content
Snippets Groups Projects
Commit 414986e4 authored by Matthew David Pitkin's avatar Matthew David Pitkin
Browse files

base.py: change Prior __eq__ method to ignore least_recently_sampled values

parent 806bd7d1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment