From 3fa6a4ec197eab4efcbde3371ede908bb731c9b4 Mon Sep 17 00:00:00 2001 From: Bryna Hazelton Date: Tue, 10 Dec 2024 14:16:14 -0800 Subject: [PATCH] Add back assertion that double precision check fails if uvw_double=False --- tests/uvdata/test_uvfits.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/uvdata/test_uvfits.py b/tests/uvdata/test_uvfits.py index 9caf42f47..64d1f3b93 100644 --- a/tests/uvdata/test_uvfits.py +++ b/tests/uvdata/test_uvfits.py @@ -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