From f7e1aad147a8ecaff3913a8fd15d87baceab4a14 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 27 May 2021 18:44:20 +0200 Subject: [PATCH] single source of truth --- python/damask/_orientation.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/python/damask/_orientation.py b/python/damask/_orientation.py index a57ac5d84..864ed56a3 100644 --- a/python/damask/_orientation.py +++ b/python/damask/_orientation.py @@ -7,12 +7,6 @@ from . import util from . import tensor from . import lattice as lattice_ -crystal_families = ['triclinic', - 'monoclinic', - 'orthorhombic', - 'tetragonal', - 'hexagonal', - 'cubic'] lattice_symmetries = { 'aP': 'triclinic', @@ -185,7 +179,7 @@ class Orientation(Rotation): if master[m].shape[-1] == 6 else \ {'direction':self.Bravais_to_Miller(uvtw=master[m][:,0:4]), '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.lattice = None