Skip to content

Commit

Permalink
Use freq='D' instead of freq='d' in pd.timedelta_range (#10004)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerkclark authored Jan 30, 2025
1 parent d7ac79a commit e84e421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/tests/test_coding_times.py
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ def test_encode_cf_timedelta_casting_overflow_error(use_dask, dtype) -> None:
def test_decode_timedelta(
decode_times, decode_timedelta, expected_dtype, warns
) -> None:
timedeltas = pd.timedelta_range(0, freq="d", periods=3)
timedeltas = pd.timedelta_range(0, freq="D", periods=3)
var = Variable(["time"], timedeltas)
encoded = conventions.encode_cf_variable(var)
if warns:
Expand Down

0 comments on commit e84e421

Please sign in to comment.