Skip to content

Commit

Permalink
Update xarray/core/common.py
Browse files Browse the repository at this point in the history
Co-authored-by: Justus Magin <[email protected]>
  • Loading branch information
dcherian and keewis authored Jul 11, 2024
1 parent 6b2ed08 commit 3bbcab2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xarray/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,9 +1110,10 @@ def _resample(
loffset=loffset,
base=base,
)
else:
assert isinstance(freq, Resampler)
elif isinstance(freq, Resampler):
grouper = freq
else:
raise ValueError("freq must be a str or a Resampler object")

rgrouper = ResolvedGrouper(grouper, group, self)

Expand Down

0 comments on commit 3bbcab2

Please sign in to comment.