From c350009479e8bdf9d712212e65962314c7d70552 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 7 Dec 2023 12:49:59 +0100 Subject: [PATCH] lowered tolerance avoid failing tests --- python/tests/test_Orientation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tests/test_Orientation.py b/python/tests/test_Orientation.py index d1fd02294..6adf14fb7 100644 --- a/python/tests/test_Orientation.py +++ b/python/tests/test_Orientation.py @@ -328,7 +328,7 @@ class TestOrientation: **dict(zip(['a','b','c'],lengths)), **dict(zip(['alpha','beta','gamma'],np.arccos(cosines))), ) - assert np.allclose(o.to_frame(uvw=np.eye(3)),basis), 'Lattice basis disagrees with initialization' + assert np.allclose(o.to_frame(uvw=np.eye(3)),basis,rtol=1e-4), 'Lattice basis disagrees with initialization' @pytest.mark.parametrize('lattice,a,b,c,alpha,beta,gamma', [