From 44331c504b0394ee465aff7e23a91c564e81a120 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sat, 10 Apr 2021 08:29:42 +0200 Subject: [PATCH] __class__ is unknown (says prospector) --- python/damask/_orientation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/damask/_orientation.py b/python/damask/_orientation.py index 5875f1d1c..5cc412c98 100644 --- a/python/damask/_orientation.py +++ b/python/damask/_orientation.py @@ -238,7 +238,7 @@ class Orientation(Rotation): """ matching_type = all([hasattr(other,attr) and getattr(self,attr) == getattr(other,attr) 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): """ @@ -276,7 +276,7 @@ class Orientation(Rotation): """ matching_type = all([hasattr(other,attr) and getattr(self,attr) == getattr(other,attr) 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))