[repetition.Arbitrary] fix equality check
This commit is contained in:
parent
c3581243c8
commit
74fa377450
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ class Arbitrary(Repetition):
|
||||||
return (f'<Arbitrary {len(self.displacements)}pts >')
|
return (f'<Arbitrary {len(self.displacements)}pts >')
|
||||||
|
|
||||||
def __eq__(self, other: Any) -> bool:
|
def __eq__(self, other: Any) -> bool:
|
||||||
if not type(other) is not type(self):
|
if type(other) is not type(self):
|
||||||
return False
|
return False
|
||||||
return numpy.array_equal(self.displacements, other.displacements)
|
return numpy.array_equal(self.displacements, other.displacements)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue