Contributors: Trevor James Smith (@Zeitsperre), Éric Dupuis (@coxipi), Juliette Lavoie (@juliettelavoie), Pascal Bourgault (@aulemahal).
Changes
- Make additional grouping dimensions optional for methods accepting the
groupargument, exceptLociandPrincipalComponents. (GH/99, GH/144, PR/151). - Speed up import by activating
cache=Truefor in numba-accelerated functions fromxsdba.nbutils. (PR/135). - Added a new installation recipe (
pip install xsdba[sbck]) for installing theSBCKpackage. (PR/139):- Note that
SBCKsupport is experimental and that thepybind11library must be installed prior to installingSBCK.
- Note that
- New functions related to spectral properties in Fourier space:
xsdba.units.convert_units_tonow wraps a private function_convert_units_to. (PR/145).xsdba.jitter_over_threshis available directly in training methods by passing thejitter_over_thresh_valueandjitter_over_thresh_upper_bndarguments. (PR/110).- Throw an error if
group=Grouper('5D',window)is used with a biasadjust method other thanMBCn(PR/162). xsdba.processing.to_additive_spaceacceptsclip_next_to_bounds, which avoids infinities by ensuringlower_bound < data < upper_bound. (GH/164, PR/165).- Allow nan values in
xsdba.measures.rmseandxsdba.measures.mae. (PR/170). - The adaptation of frequencies through
adapt_freq_thresh_valueis now applied in the adjusting step as well. (PR/160). xsdba.adjustment.ExtremeValuesnow accepts a DataArray forcluster_thresh, letting specify distinct thresholds for multiple locations. (GH/177, PR/179).- Updated minimum supported versions of
SBCK(v1.4.2) andnumpy(v1.25). (PR/180).
Fixes
- Fix
xsdba.base.get_coordinatesto avoid using a private xarray function.(PR/147, GH/148). - Fix
xsdba.processing.from_additive_spaceto handles units correctly by usingconvert_units_toinstead ofharmonize_units. (PR/146). - Fix the order of
clip_next_to_boundsinxsdba.processing.to_additive_space. (PR/169).
Internal changes
- The
toxand CI configurations now support the installation ofSBCKandEigen3for testing purposes. (PR/139). - The
coverallstox keyword has been renamed tocoverageto avoid confusion with thecoverallsservice. (PR/139). - The order of arguments in the following private functions was changed:
xsdba._adjustment.{_fit_on_cluster,_fit_cluster_and_cdf, _extremes_train_1d}(PR/179). - Updated the package metadata to reflect development progress and list user @aulemahal as a primary developer (PR/180).