Esempio n. 1
0
 def test_from_Euler_angles(self):
     assert np.all(
         Orientation.from_Euler_angles(phi=np.zeros(
             3), lattice='triclinic').as_matrix() == np.eye(3))
Esempio n. 2
0
 def test_disorientation360(self, lattice):
     o_1 = Orientation(Rotation(), lattice)
     o_2 = Orientation.from_Euler_angles(lattice=lattice,
                                         phi=[360, 0, 0],
                                         degrees=True)
     assert np.allclose((o_1.disorientation(o_2)).as_matrix(), np.eye(3))
Esempio n. 3
0
 def test_disorientation360(self, family):
     o_1 = Orientation(Rotation(), family=family)
     o_2 = Orientation.from_Euler_angles(family=family,
                                         phi=[360, 0, 0],
                                         degrees=True)
     assert np.allclose((o_1.disorientation(o_2)).as_matrix(), np.eye(3))