Skip to content

Commit

Permalink
Add tolerance in test comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Mattia Verga <[email protected]>
  • Loading branch information
mattiaverga committed Sep 20, 2023
1 parent 88f1afe commit 0c4d745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_ongc.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def test_get_separation_raw(self):
obj2 = ongc.Dso('NGC6118')

expected = (4.207483963913541, 2.9580416666666864, -2.9927499999999996)
assert ongc.getSeparation(obj1, obj2) == expected
np.testing.assert_allclose(ongc.getSeparation(obj1, obj2), expected)

def test_get_separation_friendly(self):
"""Test that the calculated apparent angular separation between two objects
Expand Down

0 comments on commit 0c4d745

Please sign in to comment.