Skip to content

Commit

Permalink
Add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed Jan 31, 2024
1 parent 6b5833c commit fe2a1c3
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 @@ -4213,6 +4213,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 fe2a1c3

Please sign in to comment.