Skip to content

Commit

Permalink
Merge branch 'master' into adapt_freq_in_training
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre authored Aug 28, 2023
2 parents e594905 + 0eb9ff1 commit ad43e39
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ v0.45.0 (unreleased)
--------------------
Contributors to this version: David Huard (:user:`huard`), Trevor James Smith (:user:`Zeitsperre`), Pascal Bourgault (:user:`aulemahal`), Juliette Lavoie (:user:`juliettelavoie`), Gabriel Rondeau-Genesse (:user:`RondeauG`), Marco Braun (:user:`vindelico`), Éric Dupuis (:user:`coxipi`).

Announcements
^^^^^^^^^^^^^
* `xclim` now uses `platformdirs` to write `xclim-testdata` to the user's cache directory. Dynamic paths are now used to cache data dependent on the user's operating system. Developers can now safely delete the `.xclim-testdata` folder in their home directory without affecting the functionality of `xclim`. (:pull:`1460`).

New features and enhancements
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* Added ``ensembles.hawkins_sutton`` method to partition the uncertainty sources in a climate projection ensemble. (:issue:`771`, :pull:`1262`).
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ dependencies:
- nc-time-axis
- netCDF4>=1.4
- notebook
- platformdirs
- pooch
- pre-commit
- pybtex
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ dev = [
"nbqa",
"nbval",
"netCDF4 >=1.4",
"platformdirs >=3.2",
"pre-commit >=2.9",
"pydocstyle >=5.1.1",
"pybtex",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.44.19-beta
current_version = 0.44.20-beta
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+).(?P<patch>\d+)(\-(?P<release>[a-z]+))?
Expand Down
2 changes: 1 addition & 1 deletion xclim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

__author__ = """Travis Logan"""
__email__ = "[email protected]"
__version__ = "0.44.19-beta"
__version__ = "0.44.20-beta"


# Load official locales
Expand Down
3 changes: 2 additions & 1 deletion xclim/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from urllib.request import urlopen, urlretrieve

import pandas as pd
from platformdirs import user_cache_dir
from xarray import Dataset
from xarray import open_dataset as _open_dataset

Expand All @@ -48,7 +49,7 @@
]


_default_cache_dir = Path.home() / ".xclim_testing_data"
_default_cache_dir = Path(user_cache_dir("xclim-testdata"))

logger = logging.getLogger("xclim")

Expand Down

0 comments on commit ad43e39

Please sign in to comment.