Skip to content

Latest commit

 

History

History
187 lines (152 loc) · 8.91 KB

CHANGELOG.rst

File metadata and controls

187 lines (152 loc) · 8.91 KB

Changelog

v0.9.0 - unreleased

New Features

  • Create statistical functionality for linear regression:
    • Create :pymesmer.stats.linear_regression.LinearRegression which encapsulates fit, predict, etc. methods around linear regression (#134). By Mathias Hauser.
    • Add mesmer.stats._fit_linear_regression_xr: xarray wrapper for mesmer.stats._fit_linear_regression_np. (#123 and #142). By Mathias Hauser.
    • Add add fit_intercept argument to the linear_regression fitting methods and functions (#144). By Mathias Hauser.
    • Allow to pass 1-dimensional targets to :pymesmer.stats.linear_regression.LinearRegression.fit (#221). By Mathias Hauser.
  • Add mesmer.stats.auto_regression._fit_auto_regression_xr: xarray wrapper to fit an auto regression model (#139). By Mathias Hauser.
  • Add mesmer.stats.auto_regression._draw_auto_regression_correlated_np: to draw samples of an auto regression model (#161). By Mathias Hauser.
  • Extract function to select the order of the auto regressive model: mesmer.stats.auto_regression._select_ar_order_xr (#176). By Mathias Hauser.
  • Refactor the LOWESS smoothing for xarray objects: :pymesmer.stats.smoothing.lowess. (#193). By Mathias Hauser.
  • Added functions to stack regular lat-lon grids to 1D grids and unstack them again (#217). By Mathias Hauser.
  • Added functions to mask the ocean and Antarctica for xarray objects (#219). By Mathias Hauser.
  • Added functions to calculate the weighted global mean (#220). By Mathias Hauser.

Breaking changes

  • Localization radii that lead to singular matrices are now skipped (#187). By Mathias Hauser.
  • Refactor and split :pytrain_l_prepare_X_y_wgteq into two functions: :pyget_scenario_weights and :pystack_predictors_and_targets (#143). By Mathias Hauser.
  • Moved gaspari_cohn & calc_geodist_exact from io.load_constant_files to core.computation (#158). By Yann Quilcaille.
  • The function mask_percentage has been renamed to :pyutils.regionmaskcompat.mask_3D_frac_approx (#202). By Mathias Hauser.

Deprecations

Bug fixes

  • Fix three issues with :pyutils.regionmaskcompat.mask_3D_frac_approx. Note that these issues are only relevant if passing xarray objects and/ or masks close to the poles (#202 and #218). By Mathias Hauser.

Documentation

Internal Changes

  • Restore compatibility with regionmask v0.9.0 (#136). By Mathias Hauser.
  • Renamed the interpolation keyword of np.quantile to method changed in numpy v1.22.0 (#137). By Mathias Hauser.
  • Make use of :pymesmer.stats.linear_regression.LinearRegression in :pymesmer.calibrate_mesmer.train_gt_ic_OLSVOLC (#145). By Mathias Hauser.
  • Add python 3.10 to list of supported versions (#162). By Mathias Hauser.
  • Move contents of setup.py to setup.cfg (#169). By Mathias Hauser.
  • Refactored functions dealing with the spatial covariance and its localization (#167 and #184). By Mathias Hauser.
  • Use pyproject.toml for the build-system and setuptools_scm for the __version__ (#188). By Mathias Hauser.
  • Added additional tests for the calibration step (#209):

    • one scenario (SSP5-8.5) and two ensemble members (#211)
    • two scenarios (SSP1-2.6 and SSP5-8.5) with one and two ensemble members, respectively (#214)

    By Mathias Hauser.

v0.8.3 - 2021-12-23

New Features

  • Add mesmer.stats._linear_regression (renamed to mesmer.stats._fit_linear_regression_np in #142). Starts the process of refactoring the codebase (#116). By Zeb Nicholls.

Bug fixes

  • Initialize llh_max to -inf to ensure the cross validation loop is entered (#110). By Jonas Schwaab.

Documentation

  • Fix copyright notice and release version in documentation (#127). By Zeb Nicholls.

Internal Changes

  • Automatically upload the code coverage to codecov.io after the test suite has run (#99). By Mathias Hauser.
  • Internal refactor: moved a number of inline comments to their own line (especially if this allows to have the code on one line instead of several) and other minor cleanups (#98). By Mathias Hauser.
  • Refactor io.load_cmipng_tas and io.load_cmipng_hfds to de-duplicate their code and add tests for them (#55). By Mathias Hauser.

v0.8.2 - 2021-10-07

Bug fixes

  • Reintroduce ability to read in cmip5 data from the cmip5-ng archive at ETH (#90). By Lea Beusch.

Internal Changes

  • Reproduce the test files because of a change in regionmask which affected the mesmer tests (#95). By Mathias Hauser.
  • Refactor and speed up of the Gaspari-Cohn function and the calculation of the great circle distance (#85, #88). By Mathias Hauser.
  • The geopy package is no longer a dependency of mesmer (#88). By Mathias Hauser.
  • Convert README from Markdown to reStructuredText to fix package build errors. Also allows to include the README in the docs to avoid duplication (#102). By Mathias Hauser.

v0.8.1 - 2021-07-15

  • Update example script (#80).

v0.8.0 - 2021-07-13

  • First release on PyPI and conda (#79).