Skip to content

Commit

Permalink
Add todo for using resample_map
Browse files Browse the repository at this point in the history
  • Loading branch information
saschahofmann committed Oct 2, 2024
1 parent 4852953 commit b6eeec1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xclim/indices/_agro.py
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,7 @@ def chill_portions(
tas_K: xarray.DataArray = select_time(
convert_units_to(tas, "K"), drop=True, **indexer
)
# TODO: use resample_map once #1848 is merged
return (
tas_K.resample(time=freq)
.map(_apply_chill_portion_one_season)
Expand Down

0 comments on commit b6eeec1

Please sign in to comment.