Skip to content

Commit

Permalink
Merge pull request #272 from eric-wieser/remove-__ne__
Browse files Browse the repository at this point in the history
Remove implied __ne__ methods
  • Loading branch information
eric-wieser committed Mar 9, 2020
2 parents 55148b6 + 7f8ff35 commit f20c21a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions clifford/_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,14 +433,6 @@ def __eq__(self, other):
else:
return NotImplemented

def __ne__(self, other):
if other is self:
return False
elif isinstance(other, Layout):
return not np.array_equal(self.sig, other.sig)
else:
return NotImplemented

def parse_multivector(self, mv_string: str) -> 'cf.MultiVector':
""" Parses a multivector string into a MultiVector object """
# Get the names of the canonical blades
Expand Down
6 changes: 0 additions & 6 deletions clifford/_multivector.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,6 @@ def __eq__(self, other) -> bool:
else:
return False

def __ne__(self, other) -> bool:
ret = self.__eq__(other)
if ret is NotImplemented:
return ret
return not ret

def clean(self, eps=None) -> 'MultiVector':
"""Sets coefficients whose absolute value is < eps to exactly 0.
Expand Down

0 comments on commit f20c21a

Please sign in to comment.