Skip to content

Commit

Permalink
Add back assertion that double precision check fails if uvw_double=False
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton authored and kartographer committed Dec 11, 2024
1 parent ba26851 commit 3fa6a4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/uvdata/test_uvfits.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def test_group_param_precision(tmp_path, uvw_double):
np.testing.assert_allclose(uvd.uvw_array, uvd2.uvw_array, rtol=1e-13)
else:
np.testing.assert_allclose(uvd.uvw_array, uvd2.uvw_array, rtol=1e-7)
assert not np.allclose(uvd.uvw_array, uvd2.uvw_array, rtol=1e-13)

# 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 3fa6a4e

Please sign in to comment.