addGrainID parses in quaternion

This commit is contained in:
Martin Diehl 2019-02-22 11:25:39 +01:00
parent 907f7ca560
commit 43376c39d8
1 changed files with 1 additions and 0 deletions

View File

@ -944,6 +944,7 @@ class Symmetry:
def inFZ(self,R): def inFZ(self,R):
"""Check whether given Rodrigues vector falls into fundamental zone of own symmetry.""" """Check whether given Rodrigues vector falls into fundamental zone of own symmetry."""
if isinstance(R, Quaternion): R = R.asRodrigues() # translate accidentally passed quaternion
# fundamental zone in Rodrigues space is point symmetric around origin # fundamental zone in Rodrigues space is point symmetric around origin
if R.shape[0]==4: # transition old (length not stored separately) to new if R.shape[0]==4: # transition old (length not stored separately) to new