- Added `test_ks` method to `EVA`. Allows to run the Kolmogorov-Smirnov test on the fitted model.
- Updated the way declustering in the `get_extremes_peaks_over_threshold` function happens. Clusters are now identified independently. Previous version could result in multiple extreme events within the same cluster if the cluster had multiple peaks separated by distances larger than `r`. This behavior was incorrect.
- Fixed issue when `get_return_periods` function could produce output linked to original extremes, thus allowing implicit mutation of original data.
- Updated old and created new plotting functions for threshold selection in `pyextremes.tuning.threshold_selection`.
- Minor backwards-compatible tweaks and optimizations.
v.2.2.2
Hotfix for new `scipy` version 1.7.0 - fixes issue when getting confidence bounds while using the MLE model. Some distributions provided by scipy no longer return a fit method, but instead a reference to a wrapper which resulted in AttributeError.