From 481aac795254e447680ad377ed31a42715c08734 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 18 Apr 2019 13:46:58 +0200 Subject: [PATCH] misorientation calculation did not always follow convention - return homomorphed quaternion to ensure that real component is > 0 (equivalent to have axis angle limited to [0, pi] --- python/damask/orientation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/damask/orientation.py b/python/damask/orientation.py index 89a4638ca..1f0dc521a 100644 --- a/python/damask/orientation.py +++ b/python/damask/orientation.py @@ -109,7 +109,7 @@ class Rotation: def misorientation(self,other): """Misorientation""" - return self.__class__(other.quaternion*self.quaternion.conjugated()) + return self.__class__((other.quaternion*self.quaternion.conjugated()).homomorph()) def average(self,other):