From 9d5ca8b631615f4866ad319ce6d19d05edb7b3e8 Mon Sep 17 00:00:00 2001 From: Tias Maiti Date: Thu, 28 May 2015 21:52:05 +0000 Subject: [PATCH] =?UTF-8?q?orientation=20matrix=20shape=20checked=20in=20?= =?UTF-8?q?=E2=80=9C=20fromMatrix=20=E2=80=9C=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/damask/orientation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/damask/orientation.py b/lib/damask/orientation.py index 7c4ce6738..299ad1852 100644 --- a/lib/damask/orientation.py +++ b/lib/damask/orientation.py @@ -757,7 +757,7 @@ class Orientation: self.quaternion = Quaternion.fromRandom() elif isinstance(Eulers, np.ndarray) and Eulers.shape == (3,): # based on given Euler angles self.quaternion = Quaternion.fromEulers(Eulers,'bunge') - elif isinstance(matrix, np.ndarray) and matrix.shape == (3,3): # based on given rotation matrix + elif isinstance(matrix, np.ndarray) : # based on given rotation matrix self.quaternion = Quaternion.fromMatrix(matrix) elif isinstance(angleAxis, np.ndarray) and angleAxis.shape == (4,): # based on given angle and rotation axis self.quaternion = Quaternion.fromAngleAxis(angleAxis[0],angleAxis[1:4])