diff --git a/pyproject.toml b/pyproject.toml index 84293bba9..597552261 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -140,7 +140,7 @@ target-version = [ ] [tool.bumpversion] -current_version = "0.54.1-dev.2" +current_version = "0.54.1-dev.3" commit = true commit_args = "--no-verify --signoff" tag = false diff --git a/src/xclim/__init__.py b/src/xclim/__init__.py index 1a10cce6c..bb48837c2 100644 --- a/src/xclim/__init__.py +++ b/src/xclim/__init__.py @@ -13,7 +13,7 @@ __author__ = """Travis Logan""" __email__ = "logan.travis@ouranos.ca" -__version__ = "0.54.1-dev.2" +__version__ = "0.54.1-dev.3" with _resources.as_file(_resources.files("xclim.data")) as _module_data: diff --git a/src/xclim/sdba/base.py b/src/xclim/sdba/base.py index 094ebcca5..0c2d3f626 100644 --- a/src/xclim/sdba/base.py +++ b/src/xclim/sdba/base.py @@ -15,7 +15,7 @@ import xarray as xr from boltons.funcutils import wraps -from xclim.core.calendar import get_calendar +from xclim.core.calendar import get_calendar, max_doy from xclim.core.options import OPTIONS, SDBA_ENCODE_CF from xclim.core.utils import uses_dask @@ -197,9 +197,8 @@ def get_coordinate( if self.prop == "dayofyear": if ds is not None: cal = get_calendar(ds, dim=self.dim) - mdoy = max( - xr.coding.calendar_ops._days_in_year(ds[self.dim].dt.year, cal) - ) + # TODO : Change this to `ds[self.dim].dt.days_in_year.max().item()` when minimum xarray is 2024.09 + mdoy = max_doy[cal] else: mdoy = 365 return xr.DataArray(