adjusted return of Orientation.__ne__ function to return NotImplemented in case of wrong input type

This commit is contained in:
Daniel Otto de Mentock 2022-02-08 14:47:23 +01:00
parent a6e83c70ec
commit 8c6225794d
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class Orientation(Rotation,Crystal):
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,