mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Remove __ne__ methods (default is correct in Python 3)
This commit is contained in:
parent
676e9aae0a
commit
ba9c3cada3
5 changed files with 0 additions and 15 deletions
|
|
@ -119,9 +119,6 @@ class Filter(IDManagerMixin, metaclass=FilterMeta):
|
|||
else:
|
||||
return np.allclose(self.bins, other.bins)
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self == other
|
||||
|
||||
def __gt__(self, other):
|
||||
if type(self) is not type(other):
|
||||
if self.short_name in _FILTER_TYPES and \
|
||||
|
|
|
|||
|
|
@ -57,9 +57,6 @@ class EnergyGroups:
|
|||
else:
|
||||
return False
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self == other
|
||||
|
||||
def __hash__(self):
|
||||
return hash(tuple(self.group_edges))
|
||||
|
||||
|
|
|
|||
|
|
@ -21,9 +21,6 @@ class EqualityMixin:
|
|||
|
||||
return True
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self.__eq__(other)
|
||||
|
||||
|
||||
class IDWarning(UserWarning):
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -41,9 +41,6 @@ class Region(metaclass=ABCMeta):
|
|||
else:
|
||||
return str(self) == str(other)
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self == other
|
||||
|
||||
def get_surfaces(self, surfaces=None):
|
||||
"""Recursively find all surfaces referenced by a region and return them
|
||||
|
||||
|
|
|
|||
|
|
@ -38,9 +38,6 @@ class Trigger:
|
|||
def __eq__(self, other):
|
||||
return str(self) == str(other)
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self == other
|
||||
|
||||
def __repr__(self):
|
||||
string = 'Trigger\n'
|
||||
string += '{0: <16}{1}{2}\n'.format('\tType', '=\t', self._trigger_type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue