play it safe
This commit is contained in:
parent
55e3bd0276
commit
ce03d9f30a
|
@ -1078,12 +1078,12 @@ class Orientation:
|
||||||
if isinstance(lattice, Lattice):
|
if isinstance(lattice, Lattice):
|
||||||
self.lattice = lattice
|
self.lattice = lattice
|
||||||
else:
|
else:
|
||||||
self.lattice = Lattice(lattice) # assume string
|
self.lattice = Lattice(lattice) # assume string
|
||||||
|
|
||||||
if isinstance(rotation, Rotation):
|
if isinstance(rotation, Rotation):
|
||||||
self.rotation = rotation
|
self.rotation = rotation
|
||||||
else:
|
else:
|
||||||
self.rotation = Rotation(rotation) # assume quaternion
|
self.rotation = Rotation.fromQuaternion(rotation) # assume quaternion
|
||||||
|
|
||||||
def disorientation(self,
|
def disorientation(self,
|
||||||
other,
|
other,
|
||||||
|
|
Loading…
Reference in New Issue