Skip to content

Commit

Permalink
Fix bad edit
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerkclark authored Sep 7, 2024
1 parent 50b69d9 commit 564ae21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/coding/cftime_offsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def to_offset(
if isinstance(freq, timedelta | pd.Timedelta):
return delta_to_tick(freq)
if isinstance(freq, pd.DateOffset):
freq = _new_freq(freq.freqstr)
freq = _legacy_to_new_freq(freq.freqstr)

match = re.match(_PATTERN, freq)
if match is None:
Expand Down

0 comments on commit 564ae21

Please sign in to comment.