__class__ is unknown (says prospector)

This commit is contained in:
Martin Diehl 2021-04-10 08:29:42 +02:00
parent 63b343ad87
commit 44331c504b
1 changed files with 2 additions and 2 deletions

View File

@ -238,7 +238,7 @@ class Orientation(Rotation):
""" """
matching_type = all([hasattr(other,attr) and getattr(self,attr) == getattr(other,attr) matching_type = all([hasattr(other,attr) and getattr(self,attr) == getattr(other,attr)
for attr in ['family','lattice','parameters']]) for attr in ['family','lattice','parameters']])
return np.logical_and(super(__class__,self.reduced).__eq__(other.reduced),matching_type) return np.logical_and(matching_type,super(self.__class__,self.reduced).__eq__(other.reduced))
def __ne__(self,other): def __ne__(self,other):
""" """
@ -276,7 +276,7 @@ class Orientation(Rotation):
""" """
matching_type = all([hasattr(other,attr) and getattr(self,attr) == getattr(other,attr) matching_type = all([hasattr(other,attr) and getattr(self,attr) == getattr(other,attr)
for attr in ['family','lattice','parameters']]) for attr in ['family','lattice','parameters']])
return np.logical_and(super(__class__,self.reduced).isclose(other.reduced),matching_type) return np.logical_and(matching_type,super(self.__class__,self.reduced).isclose(other.reduced))