play it safe

This commit is contained in:
Martin Diehl 2020-01-21 17:38:08 +01:00
parent 55e3bd0276
commit ce03d9f30a
1 changed files with 2 additions and 2 deletions

View File

@ -1078,12 +1078,12 @@ class Orientation:
if isinstance(lattice, Lattice):
self.lattice = lattice
else:
self.lattice = Lattice(lattice) # assume string
self.lattice = Lattice(lattice) # assume string
if isinstance(rotation, Rotation):
self.rotation = rotation
else:
self.rotation = Rotation(rotation) # assume quaternion
self.rotation = Rotation.fromQuaternion(rotation) # assume quaternion
def disorientation(self,
other,