From 4875191ffdda6bca74505d1aefb7e91bfb603ef8 Mon Sep 17 00:00:00 2001 From: "f.basile" Date: Sun, 28 Jun 2020 19:32:22 +0200 Subject: [PATCH] change if statement so github doesnt complain --- python/damask/_orientation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/damask/_orientation.py b/python/damask/_orientation.py index adfa839d1..cc26acafc 100644 --- a/python/damask/_orientation.py +++ b/python/damask/_orientation.py @@ -145,8 +145,9 @@ class Orientation: # ToDo: make subclass of lattice and Rotation quat=np.empty( [r , 4]) for rot in range(r): for sym in range(equi.shape[0]): - if self.lattice.symmetry.inFZ(equi.as_Rodrigues(vector=True)[sym,rot]) == True: + if self.lattice.symmetry.inFZ(equi.as_Rodrigues(vector=True)[sym,rot]): quat[rot]=equi.as_quaternion()[sym,rot] + break return self.__class__(quat,self.lattice)