v0.10.1 (2024-11-04)
Contributors to this version: Gabriel Rondeau-Genesse (@RondeauG), Pascal Bourgault (@aulemahal), Éric Dupuis (@coxipi), Juliette Lavoie (@juliettelavoie).
New features and enhancements
xs.io.make_toc
now includes the global attributes of the dataset after the information about the variables. (PR/473).- New function
xs.get_warming_level_from_period
to get the warming level associated with a given time horizon. (PR/474). - Added ability to skip whole folders to
xs.parse_directory
with argumentskip_dirs
. (PR/478, PR/479). diagnostics.measures_improvement
now acceptsdim
, which specifiesdimension(s)
on which the proportion of improved pixels are computed. (PR/416)- The argument
indicators
inxs.produce_horizon
is now optional. Added an argumentop
to control the climatological operation. (PR/483).
Breaking changes
xs.get_warming_level
has been renamed toxs.get_period_from_warming_level
. Its argumentreturn_horizon
was reversed and renamedreturn_central_year
(PR/474).- Removed support for the deprecated
xclim
functionchange_significance
inensemble_stats
. (PR/482). - The argument
indicators
inxs.produce_horizon
is no longer positional. (PR/483).
Bug fixes
xs.io.save_to_table
now correctly handles the case where the input is aDataArray
or aDataset
with a single variable. (PR/473).- Fixed a bug in
xs.utils.change_units
where the original dataset was also getting modified. (PR/482). - Fixed a bug in
xs.compute_indicators
where thecat:variable
attribute was not correctly set. (PR/483). - Fixed a bug in
xs.climatological_op
where kwargs were not passed to the operation function. (PR/486). - Fixed a bug in
xs.climatological_op
wheremin_periods
was not passed when the operation waslinregress
. (PR/486).
Internal changes
- Include CF convention for temperature differences and on scale (PR/428, GH/428).
- Bumped the version of
xclim
to 0.53.2. (PR/482). - More tests added. (PR/486).
- Fixed a bug in
xs.testing.datablock_3d
where some attributes of the rotated pole got reversed half-way through the creation of the dataset. (PR/486). - The function
xs.regrid._get_grid_mapping
was moved toxs.spatial.get_grid_mapping
and is now a public function. (PR/486).