Skip to content

v0.10.1

Latest
Compare
Choose a tag to compare
@RondeauG RondeauG released this 04 Nov 21:42
· 44 commits to main since this release
7dcdacf

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 argument skip_dirs. (PR/478, PR/479).
  • diagnostics.measures_improvement now accepts dim, which specifies dimension(s) on which the proportion of improved pixels are computed. (PR/416)
  • The argument indicators in xs.produce_horizon is now optional. Added an argument op to control the climatological operation. (PR/483).

Breaking changes

  • xs.get_warming_level has been renamed to xs.get_period_from_warming_level. Its argument return_horizon was reversed and renamed return_central_year (PR/474).
  • Removed support for the deprecated xclim function change_significance in ensemble_stats. (PR/482).
  • The argument indicators in xs.produce_horizon is no longer positional. (PR/483).

Bug fixes

  • xs.io.save_to_table now correctly handles the case where the input is a DataArray or a Dataset 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 the cat: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 where min_periods was not passed when the operation was linregress. (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 to xs.spatial.get_grid_mapping and is now a public function. (PR/486).