From c7c6627dfb7e1871b3dc334338bd22974862c010 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 17 Apr 2019 08:49:26 +0200 Subject: [PATCH] don't try to figure out the input --- python/damask/orientation.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/python/damask/orientation.py b/python/damask/orientation.py index 349c368fa..f2302e992 100644 --- a/python/damask/orientation.py +++ b/python/damask/orientation.py @@ -446,13 +446,7 @@ class Symmetry: Representation of Orientation and Disorientation Data for Cubic, Hexagonal, Tetragonal and Orthorhombic Crystals Acta Cryst. (1991). A47, 780-789 """ - if isinstance(rodrigues, Quaternion): - R = rodrigues.asRodrigues() # translate accidentially passed quaternion - else: - R = rodrigues - - if R.shape[0]==4: # transition old (length not stored separately) to new - R = (R[0:3]*R[3]) + R = rodrigues epsilon = 0.0 if self.lattice == 'cubic': @@ -910,7 +904,7 @@ class Orientation: for k in range(2): r.inverse() breaker = self.lattice.symmetry.inFZ(r.asRodrigues()) \ - and (not SST or other.lattice.symmetry.inDisorientationSST(r.asRodrigues())) + and (not SST or other.lattice.symmetry.inDisorientationSST(r.asRodrigues(vector=True))) if breaker: break if breaker: break if breaker: break