polishing

This commit is contained in:
Martin Diehl 2019-10-22 23:31:27 +02:00
parent 562d216fa9
commit 37e52fd81f
1 changed files with 4 additions and 3 deletions

View File

@ -1126,11 +1126,10 @@ class Orientation:
return (Orientation(r,self.lattice), i,j, k == 1) if symmetries else r # disorientation ...
# ... own sym, other sym,
# self-->other: True, self<--other: False
def inFZ(self):
return self.lattice.symmetry.inFZ(self.rotation.asRodrigues(vector=True))
def equivalentOrientations(self,members=[]):
"""List of orientations which are symmetrically equivalent."""
try:
@ -1146,6 +1145,7 @@ class Orientation:
r = self.lattice.relationOperations(model)
return [self.__class__(o*self.rotation,r['lattice']) for o in r['rotations']]
def reduced(self):
"""Transform orientation to fall into fundamental zone according to symmetry."""
for me in self.equivalentOrientations():
@ -1153,6 +1153,7 @@ class Orientation:
return self.__class__(me.rotation,self.lattice)
def inversePole(self,
axis,
proper = False,