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]
This commit is contained in:
Martin Diehl 2019-04-18 13:46:58 +02:00
parent fdd5b93e7c
commit 481aac7952
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class Rotation:
def misorientation(self,other): def misorientation(self,other):
"""Misorientation""" """Misorientation"""
return self.__class__(other.quaternion*self.quaternion.conjugated()) return self.__class__((other.quaternion*self.quaternion.conjugated()).homomorph())
def average(self,other): def average(self,other):