disable if not possible

This commit is contained in:
Martin Diehl 2021-06-03 11:20:38 +02:00
parent 3c8d06b6f1
commit 0722f4f754
1 changed files with 2 additions and 1 deletions

View File

@ -137,10 +137,11 @@ class Orientation(Rotation):
self.family = family
self.lattice = None
self.structure = LatticeFamily(self.family)
self.related = self.Schmid = self.to_pole = None
elif lattice in lattice_symmetries:
self.family = lattice_symmetries[lattice]
self.lattice = lattice
self.structure = l = Lattice(self.lattice, a,b,c, alpha,beta,gamma, degrees)
self.structure = Lattice(self.lattice, a,b,c, alpha,beta,gamma, degrees)
else:
raise KeyError(f'no valid family or lattice')