Merge branch 'development' into PGI-support

This commit is contained in:
Martin Diehl 2020-01-13 23:27:27 +01:00
commit 4c09c23374
2 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 66d562c755cd9aa4bbb8280c509383014acd52db
Subproject commit 99b076706a186ec7deb051ae181c2d9697c799fc

View File

@ -45,17 +45,17 @@ class TestRotation:
def test_Homochoric(self,default):
for rot in default:
assert np.allclose(rot.asRodrigues(),
Rotation.fromHomochoric(rot.asHomochoric()).asRodrigues())
Rotation.fromHomochoric(rot.asHomochoric()).asRodrigues(),rtol=5.e-5)
def test_Cubochoric(self,default):
for rot in default:
assert np.allclose(rot.asHomochoric(),
Rotation.fromCubochoric(rot.asCubochoric()).asHomochoric())
Rotation.fromCubochoric(rot.asCubochoric()).asHomochoric(),rtol=5.e-5)
def test_Quaternion(self,default):
for rot in default:
assert np.allclose(rot.asCubochoric(),
Rotation.fromQuaternion(rot.asQuaternion()).asCubochoric())
Rotation.fromQuaternion(rot.asQuaternion()).asCubochoric(),rtol=5.e-5)
@pytest.mark.parametrize('model',['Bain','KS','GT','GT_prime','NW','Pitsch'])