diff --git a/python/damask/orientation.py b/python/damask/orientation.py index 688a3fa3f..dc851b35c 100644 --- a/python/damask/orientation.py +++ b/python/damask/orientation.py @@ -701,15 +701,15 @@ class Symmetry: v = np.array(vector,dtype=float) if proper: # check both improper ... - theComponents = np.dot(basis['improper'],v) - inSST = np.all(np.around(theComponents,12) >= 0.0) + theComponents = np.around(np.dot(basis['improper'],v),12) + inSST = np.all(theComponents >= 0.0) if not inSST: # ... and proper SST - theComponents = np.dot(basis['proper'],v) - inSST = np.all(np.around(theComponents,12) >= 0.0) + theComponents = np.around(np.dot(basis['proper'],v),12) + inSST = np.all(theComponents >= 0.0) else: v[2] = abs(v[2]) # z component projects identical - theComponents = np.dot(basis['improper'],v) # for positive and negative values - inSST = np.all(np.around(theComponents,12) >= 0.0) + theComponents = np.around(np.dot(basis['improper'],v),12) # for positive and negative values + inSST = np.all(theComponents >= 0.0) if color: # have to return color array if inSST: