mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Change Filter __hash__ to not use user-defined unique ID
This commit is contained in:
parent
7af1be9302
commit
ff6bb88bf5
1 changed files with 3 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue