Skip to content

Commit

Permalink
increase tolerance for test_from_ra_dec_roll
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit Aronovitch committed Mar 31, 2018
1 parent e536983 commit f9696e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_quaternion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
< self.tolerance_deg

0 comments on commit f9696e7

Please sign in to comment.