From f9696e7c24a29bffbaf3b62d4d549a0a72c9f81b Mon Sep 17 00:00:00 2001 From: Amit Aronovitch Date: Sat, 31 Mar 2018 15:44:34 +0300 Subject: [PATCH] increase tolerance for test_from_ra_dec_roll --- tests/test_quaternion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_quaternion.py b/tests/test_quaternion.py index 04eef23..d00f74f 100644 --- a/tests/test_quaternion.py +++ b/tests/test_quaternion.py @@ -147,7 +147,7 @@ def test_from_ra_dec_roll(self, arr): [s1 * s3 - c1 * c3 * s2, c3 * s1 + c1 * s2 * s3, c1 * c2] # noqa ])) - assert Quaternion.from_ra_dec_roll(*arr) == Quaternion.from_matrix(expected) + assert Quaternion.from_ra_dec_roll(*arr).is_equal(Quaternion.from_matrix(expected), tolerance=5e-8) @given(ANY_QUATERNION) def test_ra_dec_roll(self, arr): @@ -301,4 +301,4 @@ def test_average_and_covariance(self): * np.sqrt(len(quat_diff_matlab_quats)-1) assert abs(sigma_lerner_in_deg - sigma_lerner_out_deg ) \ - < self.tolerance_deg \ No newline at end of file + < self.tolerance_deg