Contributors to this version: Pascal Bourgault (@aulemahal), Trevor James Smith (@Zeitsperre), Hui-Min Wang (@Hem-W), Éric Dupuis (@coxipi).
Announcements
The next major release of xclim will be v1.0. This new version will have some significant breaking changes such as:
- Migration of
xclim.indicesmodule into the newxclim.computemodule for more efficient indicator composition. xclim.indicators.genericrefactoring to remove lots of redundant code in favour of more standardized and easier-to-use primitive functions.
Users should expect that existing scripts may need to be updated in order to continue operating as usual. The xclim developers may release some patch versions to address small issues before v1.0.
We suggest temporarily pinning your dependencies (xclim <1.0) if your workflows require significant effort to adapt to changes, particularly if they depend on direct calls within xclim.indices.
A migration guide will be made available within the official documentation.
For more information on what will comprise the next major release and some future goals of xclim v1.0, consult the meta-issue here: GH/2352.
New indicators and features
xclim.indices.generic.doyminandxclim.indices.generic.doymaxwill now returnnanif all values along the time axis are the same. They now also support all-nan arrays (PR/2314).- This changes the behaviour for indicators
land.snw_max_doy,land.snd_max_doy,land.doy_qminandland.doy_qmax.
- This changes the behaviour for indicators
- Added two
zero_inflatedarguments toxclim.indices.stats.standardized_indexandxclim.indices.standardized_precipitation_indexto control how zero-precipitation probabilities are handled. (GH/2279, PR/2280). xclim.indices.stats.parametric_pdfallows to compute PDF distributions with given input parameters and values (PR/2323).xclim.indices.standardized_precipitation_indexandxclim.indices.standardized_precipitation_evapotranspiration_indexnow can acceptgenextremeandlognormas inputs fordist. (GH/2326, PR/2327).
Internal changes
- Documentation adjustments. (PR/2325):
- Updated the
intersphinxdirectives to point at newxsdbasphinx documentation targets. - Updated the ReadTheDocs configuration to build docs with an older Python version and a newer conda version.
- Updated the
pre-commithooks (check-jsonschema) in order to accept the latest supported conda version in ReadTheDocs config. - Set
docs/conf.pyto ignoresphinx_autodoc_typehints.guarded_importerrors raised byxarraytype guarding.
- Updated the
- Set
SocketBlockedErrorto be a subset of theExceptionclass whenpytest-socketis not installed. (PR/2324). - Carbon and energy reporting via
green-coding-solutions/eco-ci-energy-estimationhas been configured to better aggregate results for the xclimmainbranch as well as for all Pull Requests. (PR/2090). xclimnow has a set of guidance documents on the kinds of AI-assisted contributions that are considered acceptable and how they must be disclosed (AGENTS.md,AI_POLICY.md, new section inCONTRIBUTING.rst). (GH/2321, PR/2346).- The
README.rstfile now shows the Ouranos logo. In rendered documentation, the logo style is dynamic to the light/dark theming. (PR/2349).
Breaking changes
- The choice of
method"APP" was removed when using agenextremedistribution in standardized indices (xclim.indices.standardized_indexand related functions). (GH/2326, PR/2327).