problem with if value is true / if value == True
This commit is contained in:
parent
8484d2e6cc
commit
a99f016438
|
@ -145,7 +145,7 @@ 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]) is True:
|
if self.lattice.symmetry.inFZ(equi.as_Rodrigues(vector=True)[sym,rot]) == True:
|
||||||
quat[rot]=equi.as_quaternion()[sym,rot]
|
quat[rot]=equi.as_quaternion()[sym,rot]
|
||||||
return self.__class__(quat,self.lattice)
|
return self.__class__(quat,self.lattice)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue