Skip to content

Commit

Permalink
Add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed Feb 25, 2024
1 parent 1bcc1b6 commit 3be3a14
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pyuvdata/uvdata/tests/test_uvdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -4287,6 +4287,16 @@ def test_check_freq_spacing_flex_spw(sma_mir, chan_width, msg):
sma_mir._check_freq_spacing()


def test_check_freq_spacing_single_chan_spw(sma_mir):
sma_mir.flex_spw_id_array[-1] = 5
spw_list = sma_mir.spw_array.tolist()
spw_list.append(5)
sma_mir.spw_array = np.asarray(spw_list)
spacing_error, chanwidth_error = sma_mir._check_freq_spacing()
assert not spacing_error
assert not chanwidth_error


@pytest.mark.filterwarnings("ignore:This method will be removed in version 3.0 when")
@pytest.mark.filterwarnings("ignore:LST values stored in this file are not ")
@pytest.mark.parametrize("future_shapes", [True, False])
Expand Down

0 comments on commit 3be3a14

Please sign in to comment.