single source of truth

This commit is contained in:
Martin Diehl 2021-05-27 18:44:20 +02:00
parent 545a085c93
commit f7e1aad147
1 changed files with 1 additions and 7 deletions

View File

@ -7,12 +7,6 @@ from . import util
from . import tensor from . import tensor
from . import lattice as lattice_ from . import lattice as lattice_
crystal_families = ['triclinic',
'monoclinic',
'orthorhombic',
'tetragonal',
'hexagonal',
'cubic']
lattice_symmetries = { lattice_symmetries = {
'aP': 'triclinic', 'aP': 'triclinic',
@ -185,7 +179,7 @@ class Orientation(Rotation):
if master[m].shape[-1] == 6 else \ if master[m].shape[-1] == 6 else \
{'direction':self.Bravais_to_Miller(uvtw=master[m][:,0:4]), {'direction':self.Bravais_to_Miller(uvtw=master[m][:,0:4]),
'plane': self.Bravais_to_Miller(hkil=master[m][:,4:8])} 'plane': self.Bravais_to_Miller(hkil=master[m][:,4:8])}
elif lattice in crystal_families: elif lattice in set(lattice_symmetries.values()):
self.family = lattice self.family = lattice
self.lattice = None self.lattice = None