Remove __ne__ methods (default is correct in Python 3)

This commit is contained in:
Paul Romano 2020-03-25 06:55:20 -05:00
parent 676e9aae0a
commit ba9c3cada3
5 changed files with 0 additions and 15 deletions

View file

@ -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 \

View file

@ -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))

View file

@ -21,9 +21,6 @@ class EqualityMixin:
return True
def __ne__(self, other):
return not self.__eq__(other)
class IDWarning(UserWarning):
pass

View file

@ -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

View file

@ -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)