From 43376c39d8cc705c313f863945bd4ef8349f531c Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 22 Feb 2019 11:25:39 +0100 Subject: [PATCH] addGrainID parses in quaternion --- python/damask/orientation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/damask/orientation.py b/python/damask/orientation.py index 03c69291f..3ab7cd044 100644 --- a/python/damask/orientation.py +++ b/python/damask/orientation.py @@ -944,6 +944,7 @@ class Symmetry: def inFZ(self,R): """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 if R.shape[0]==4: # transition old (length not stored separately) to new