Skip to content

Commit e0e24d5

Browse files
authored
Merge pull request #3336 from dopplershift/pandas-warning
Avoid pandas warning
2 parents bb16c0d + 0cdfc31 commit e0e24d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/calc/test_basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,14 +709,14 @@ def test_smooth_window_1d_dataarray():
709709
temperature = xr.DataArray(
710710
[37., 32., 34., 29., 28., 24., 26., 24., 27., 30.],
711711
dims=('time',),
712-
coords={'time': pd.date_range('2020-01-01', periods=10, freq='H')},
712+
coords={'time': pd.date_range('2020-01-01', periods=10, freq='h')},
713713
attrs={'units': 'degF'})
714714
smoothed = smooth_window(temperature, window=np.ones(3) / 3, normalize_weights=False)
715715
truth = xr.DataArray(
716716
[37., 34.33333333, 31.66666667, 30.33333333, 27., 26., 24.66666667,
717717
25.66666667, 27., 30.] * units.degF,
718718
dims=('time',),
719-
coords={'time': pd.date_range('2020-01-01', periods=10, freq='H')}
719+
coords={'time': pd.date_range('2020-01-01', periods=10, freq='h')}
720720
)
721721
xr.testing.assert_allclose(smoothed, truth)
722722

0 commit comments

Comments
 (0)