Skip to content

Commit

Permalink
generic indice infers context
Browse files Browse the repository at this point in the history
  • Loading branch information
aulemahal committed Aug 1, 2024
1 parent 37e8ef8 commit 986a6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xclim/indices/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def season(
xclim.indices.run_length.season_length
xclim.indices.run_length.season_end
"""
thresh = convert_units_to(thresh, data)
thresh = convert_units_to(thresh, data, context="infer")
cond = compare(data, op, thresh, constrain=constrain)
FUNC = {"start": rl.season_start, "end": rl.season_end, "length": rl.season_length}
map_kwargs = dict(window=window, mid_date=mid_date)
Expand Down

0 comments on commit 986a6d8

Please sign in to comment.