From 5771ab72752d18f9578518cab18e04eb848b5f8e Mon Sep 17 00:00:00 2001 From: Garrett 'Karto' Keating Date: Sun, 24 Sep 2023 21:19:18 -0400 Subject: [PATCH] One more set of test tweaks when lunarsky is installed --- pyuvdata/tests/test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyuvdata/tests/test_utils.py b/pyuvdata/tests/test_utils.py index 8eb17a3260..90c0dc8c7c 100644 --- a/pyuvdata/tests/test_utils.py +++ b/pyuvdata/tests/test_utils.py @@ -4150,7 +4150,7 @@ def test_calc_app_coords_time_obj(): assert np.allclose(app_dec_to, app_dec_nto) -@pytest.mark.skipif(not hasmoon, reason="lunarsky not installed") +@pytest.mark.skipif(hasmoon, reason="lunarsky installed") def test_uvw_track_generator_errs(): with pytest.raises( ValueError, match="Need to install `lunarsky` package to work with MCMF frame." @@ -4158,10 +4158,10 @@ def test_uvw_track_generator_errs(): uvutils.uvw_track_generator(telescope_loc=(0, 0, 0), antenna_frame="MCMF") -@pytest.mark.filterwarnings('ignore:ERFA function "pmsafe" yielded') @pytest.mark.parametrize("flip_u", [False, True]) @pytest.mark.parametrize("use_uvw", [False, True]) @pytest.mark.parametrize("use_earthloc", [False, True]) +@pytest.mark.filterwarnings("ignore:The lst_array is not self-consistent") def test_uvw_track_generator(flip_u, use_uvw, use_earthloc): sma_mir = UVData.from_file(os.path.join(DATA_PATH, "sma_test.mir")) sma_mir.set_lsts_from_time_array()