From ba9c3cada3430630c4bbceb8642197d40114207f Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 25 Mar 2020 06:55:20 -0500 Subject: [PATCH] Remove __ne__ methods (default is correct in Python 3) --- openmc/filter.py | 3 --- openmc/mgxs/groups.py | 3 --- openmc/mixin.py | 3 --- openmc/region.py | 3 --- openmc/trigger.py | 3 --- 5 files changed, 15 deletions(-) diff --git a/openmc/filter.py b/openmc/filter.py index f37a0a9d0e..28b06f52e6 100644 --- a/openmc/filter.py +++ b/openmc/filter.py @@ -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 \ diff --git a/openmc/mgxs/groups.py b/openmc/mgxs/groups.py index cbf6ed9556..5d7876644a 100644 --- a/openmc/mgxs/groups.py +++ b/openmc/mgxs/groups.py @@ -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)) diff --git a/openmc/mixin.py b/openmc/mixin.py index 37e972974d..d144492399 100644 --- a/openmc/mixin.py +++ b/openmc/mixin.py @@ -21,9 +21,6 @@ class EqualityMixin: return True - def __ne__(self, other): - return not self.__eq__(other) - class IDWarning(UserWarning): pass diff --git a/openmc/region.py b/openmc/region.py index 22718ac7b2..0d86d99bb9 100644 --- a/openmc/region.py +++ b/openmc/region.py @@ -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 diff --git a/openmc/trigger.py b/openmc/trigger.py index f28995778a..1dcaf8a7db 100644 --- a/openmc/trigger.py +++ b/openmc/trigger.py @@ -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)