diff --git a/python/damask/orientation.py b/python/damask/orientation.py index 8ea6499bf..f830024f8 100644 --- a/python/damask/orientation.py +++ b/python/damask/orientation.py @@ -97,9 +97,9 @@ class Rotation: C = 2.0 * P*self.quaternion[0] return np.array([ - A*self.quaternion[1] + B*other[0] + C*(self.quaternion[2]*other[2] - self.quaternion[3]*other[1]), - A*self.quaternion[2] + B*other[1] + C*(self.quaternion[3]*other[0] - self.quaternion[1]*other[2]), - A*self.quaternion[3] + B*other[2] + C*(self.quaternion[1]*other[1] - self.quaternion[2]*other[0]), + A*other[0] + B*self.quaternion[1] + C*(self.quaternion[2]*other[2] - self.quaternion[3]*other[1]), + A*other[1] + B*self.quaternion[2] + C*(self.quaternion[3]*other[0] - self.quaternion[1]*other[2]), + A*other[2] + B*self.quaternion[3] + C*(self.quaternion[1]*other[1] - self.quaternion[2]*other[0]), ]) elif other.shape == (3,3,): # rotate a single (3x3)-matrix return np.dot(self.asMatrix(),np.dot(other,self.asMatrix().T)) diff --git a/python/tests/test_Rotation.py b/python/tests/test_Rotation.py index bb45c2906..6c9cdb8a5 100644 --- a/python/tests/test_Rotation.py +++ b/python/tests/test_Rotation.py @@ -7,7 +7,7 @@ import damask from damask import Rotation from damask import Orientation -n = 100000 +n = 1000 @pytest.fixture def default():