Skip to content

Commit

Permalink
Address code review
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbjoernl committed Aug 23, 2024
1 parent f088937 commit ce69c9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/stats/mda8/test_mda8.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,8 @@ def test_rollingaverage_label():

ravg = _rolling_average_8hr(data)

assert np.all(
ravg.get_index("time") == xr.date_range(start="2024-01-01 00:00", periods=24, freq="1h")
)
assert ravg["time"].isel(time=0) == np.datetime64("2024-01-01 00:00")
assert ravg["time"].isel(time=23) == np.datetime64("2024-01-01 23:00")


@pytest.mark.parametrize(
Expand Down

0 comments on commit ce69c9c

Please sign in to comment.