polishing
This commit is contained in:
parent
ce7018164f
commit
9d94b521ad
|
@ -267,7 +267,8 @@ class Rotation:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
ro = Rotation._qu2ro(self.quaternion)
|
ro = Rotation._qu2ro(self.quaternion)
|
||||||
return ro[...,:3]*ro[...,3:] if vector else ro
|
with np.errstate(invalid='ignore'):
|
||||||
|
return ro[...,:3]*ro[...,3:] if vector else ro
|
||||||
|
|
||||||
def as_homochoric(self):
|
def as_homochoric(self):
|
||||||
"""Homochoric vector: (h_1, h_2, h_3)."""
|
"""Homochoric vector: (h_1, h_2, h_3)."""
|
||||||
|
|
|
@ -5,10 +5,10 @@ from damask import Rotation
|
||||||
from damask import Orientation
|
from damask import Orientation
|
||||||
from damask import Lattice
|
from damask import Lattice
|
||||||
|
|
||||||
rot0= Rotation.from_random() ;
|
rot0= Rotation.from_random()
|
||||||
rot1= Rotation.from_random() ;
|
rot1= Rotation.from_random()
|
||||||
rot2= Rotation.from_random() ;
|
rot2= Rotation.from_random()
|
||||||
rot3= Rotation.from_random() ;
|
rot3= Rotation.from_random()
|
||||||
|
|
||||||
#disorientation
|
#disorientation
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue