Change Filter __hash__ to not use user-defined unique ID

This commit is contained in:
amandalund 2017-03-30 21:20:01 -05:00
parent 7af1be9302
commit ff6bb88bf5

View file

@ -134,7 +134,9 @@ class Filter(object):
return not self > other
def __hash__(self):
return hash(repr(self))
string = type(self).__name__ + '\n'
string += '{: <16}=\t{}\n'.format('\tBins', self.bins)
return hash(repr(string))
def __repr__(self):
string = type(self).__name__ + '\n'