Skip to content

Commit

Permalink
Better precision in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed Dec 10, 2024
1 parent 238e86d commit 329a9e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/uvdata/test_uvfits.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ def test_group_param_precision(tmp_path, uvw_double):
)

if uvw_double:
np.testing.assert_allclose(uvd.uvw_array, uvd2.uvw_array, rtol=0, atol=1e-13)
np.testing.assert_allclose(uvd.uvw_array, uvd2.uvw_array, rtol=1e-13)
else:
assert not np.allclose(uvd.uvw_array, uvd2.uvw_array, rtol=0, atol=1e-13)
np.testing.assert_allclose(uvd.uvw_array, uvd2.uvw_array, rtol=1e-7)

# The incoming ra is specified as negative, it gets 2pi added to it in the roundtrip
uvd2.phase_center_catalog[1]["cat_lon"] -= 2 * np.pi
Expand Down

0 comments on commit 329a9e9

Please sign in to comment.