v0.7.0
v0.7.0 (2026-02-24)
Contributors to this version: Trevor James Smith (@Zeitsperre), Gabriel Rondeau-Genesse (@RondeauG), Julián Ospina (@ospinajulian), Ève Larose (@e-larose), Thomas-Charles Fortier Filion (@TC-FF).
New features and enhancements
- The
xh.indicators.pmp.major_precipitation_eventsfunction now supports specifying a minimum precipitation threshold to consider an event. (PR/370). - New objective functions have been added to the calibration module. (GH/365, PR/366).
- Added a new submodule
xhydro.indicators.signaturesto compute hydrological signatures. (GH/365, PR/366).
Breaking changes
- The migration from
stackstactoodc-stacinxhydro.gishas led to changes in the results ofxhydro.gis.land_use_classificationandxhydro.gis.surface_propertiesdue to differences in projection handling between the two libraries. (PR/403).- Our tests show that the differences are generally minor, but users should verify that their results remain consistent after the update.
- The
Upstream Area (sq. km).column in the output ofxh.gis.watershed_propertieshas been renamed toUpstream Area (sq. km). (PR/403). - Features that were deprecated and planned to be removed in v0.7.0 have now been removed. This includes: (PR/408).
- The
mapargument inxh.gis.watershed_delineation(nowm). - The
use_defaultsandcheck_missingarguments in theHydrotelclass. - Most of the arguments in the
RavenpyModel.create_rv()method, which are now expected to be given to the class itself or to theupdate_data()method. - Streamflow is now always
q. return_periodis now the only accepted argument for return periods in thexhfamodule, and the oldt,rp, andreturn_periodsarguments have been removed.xhfa.regional.get_group_from_fithas been renamed toxhfa.regional.get_clustersand the old function has been removed.xhfa.regional.calculate_rp_from_afrhas been renamed toxhfa.regional.calculate_return_periodand the old function has been removed.xhfa.uncertainties.calc_q_iterhas been renamed toxhfa.uncertainties.calculate_quantiles_over_boostraped_groupsand the old function has been removed.
- The
Bug fixes
- The plotting positions calculated by
xhfa.local._plotting_positionsare now assigned as coordinates to ensure compatibility withhvplotwhen combined toxarray >=2025.11.0. (PR/373). - Fixed a bug in
xh.indicators.pmp.spatial_average_storm_configurationswhere certain instances were incorrectly assigned the string "x" and "y" instead of the expected value x and y. (PR/370). - Corrected the titles in the documentation of the Inputs for the Probable Maximum flood (PMF). (PR/370)
- Added specific import for exactextract to prevent issues in the GIS modules if exactextract is prensent in the environment. (PR/381)
- The version detection logic in
xhydro.modelling._hydrotelshould now be more robust. (PR/388). - Added a temporary workaround in
xhydro.modelling._hydrotelto avoidOverflowErrorwhen chunks are automatically estimated as-1byxscen.estimate_chunks. (PR/388).- Automated chunk estimation is also now skipped if the dataset is smaller than 100 MB.
xh.modelling.format_inputnow correctly handles subdaily meteorological data with Hydrotel. (GH/404, PR/405).xh.modelling.format_inputnow correctly handles station-based meteorological data with Hydrotel. (PR/405).
Internal changes
- Updated the cookiecutter template to the latest commit. (PR/371):
- Migrated from
tox.initotox.toml pre-commithooks have been updated- Python 3.13 has been set in CI workflows (replacing
"3.x") toxbuilds no longer requirepython-coveralls(abandoned) and CI workflows now exclusively usecoverallsapp/github-action
- Migrated from
- Addressed multiple FutureWarnings coming from
xarrayandpandas. (PR/403). - The backend used to load STAC data in
xhydro.gishas been changed fromstackstactoodc-stac. (PR/403).- This change addresses compatibility issues with new versions of
rasterio.
- This change addresses compatibility issues with new versions of
- Added an additional xfail condition to the tests calling
planetary_computerto account for occasional server issues. (PR/403). - Updated
test_hydrotel.pyto enable testing with the Hydrotel executable and demo project. (PR/405).- You need to create a
.envfile in thetestsdirectory and add the three required environment variables (HYDROTEL_EXECUTABLE,HYDROTEL_DEMO, andHYDROTEL_VERSION).
- You need to create a