Skip to content

Commit

Permalink
Rm amax from doc but leave in function
Browse files Browse the repository at this point in the history
  • Loading branch information
aulemahal committed Oct 16, 2023
1 parent 99ffcbf commit a935e66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xclim/core/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def to_agg_units(
orig : xr.DataArray
The original array before the aggregation operation,
used to infer the sampling units and get the variable units.
op : {'amin', 'min', 'amax', 'max', 'mean', 'std', 'var', 'doymin', 'doymax', 'count', 'integral', 'sum'}
op : {'min', 'max', 'mean', 'std', 'var', 'doymin', 'doymax', 'count', 'integral', 'sum'}
The type of aggregation operation performed. The special "delta_*" ops are used
with temperature units needing conversion to their "delta" counterparts (e.g. degree days)
dim : str
Expand Down Expand Up @@ -594,7 +594,7 @@ def to_agg_units(
out.attrs["units"] = pint2cfunits(orig_u * freq_u)
else:
raise ValueError(
f"Unknown aggregation op {op}. Known ops are [min, max, amin, amax, mean, std, var, doymin, doymax, count, integral, sum]."
f"Unknown aggregation op {op}. Known ops are [min, max, mean, std, var, doymin, doymax, count, integral, sum]."
)

return out
Expand Down

0 comments on commit a935e66

Please sign in to comment.