play it safe
This commit is contained in:
parent
55e3bd0276
commit
ce03d9f30a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue