Skip to content

Commit

Permalink
One more set of test tweaks when lunarsky is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
kartographer committed Sep 25, 2023
1 parent 9ab5c03 commit 5771ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyuvdata/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4150,18 +4150,18 @@ 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."
):
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()
Expand Down

0 comments on commit 5771ab7

Please sign in to comment.