change if statement so github doesnt complain

This commit is contained in:
f.basile 2020-06-28 19:32:22 +02:00
parent a99f016438
commit 4875191ffd
1 changed files with 2 additions and 1 deletions

View File

@ -145,8 +145,9 @@ class Orientation: # ToDo: make subclass of lattice and Rotation
quat=np.empty( [r , 4]) quat=np.empty( [r , 4])
for rot in range(r): for rot in range(r):
for sym in range(equi.shape[0]): 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] quat[rot]=equi.as_quaternion()[sym,rot]
break
return self.__class__(quat,self.lattice) return self.__class__(quat,self.lattice)