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