adjusted return of Orientation.__ne__ function to return NotImplemented in case of wrong input type
This commit is contained in:
parent
a6e83c70ec
commit
8c6225794d
|
@ -165,7 +165,7 @@ class Orientation(Rotation,Crystal):
|
||||||
Orientation to check for equality.
|
Orientation to check for equality.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
return np.logical_not(self==other)
|
return np.logical_not(self==other) if isinstance(other, Orientation) else NotImplemented
|
||||||
|
|
||||||
|
|
||||||
def isclose(self,
|
def isclose(self,
|
||||||
|
|
Loading…
Reference in New Issue