polishing

This commit is contained in:
Martin Diehl 2020-06-30 13:31:58 +02:00
parent ce7018164f
commit 9d94b521ad
3 changed files with 12 additions and 11 deletions

View File

@ -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):

View File

@ -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