Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Ouranosinc/xclim into fix-O…
Browse files Browse the repository at this point in the history
  • Loading branch information
saschahofmann committed Jan 20, 2025
2 parents 835ee16 + 71026fd commit 43c02a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/xclim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

__author__ = """Travis Logan"""
__email__ = "[email protected]"
__version__ = "0.54.1-dev.2"
__version__ = "0.54.1-dev.3"


with _resources.as_file(_resources.files("xclim.data")) as _module_data:
Expand Down
7 changes: 3 additions & 4 deletions src/xclim/sdba/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 43c02a7

Please sign in to comment.