Skip to content

Commit b260fcb

Browse files
Bump to v0.8.0 (#733)
1 parent 8824b32 commit b260fcb

File tree

4 files changed

+50
-6
lines changed

4 files changed

+50
-6
lines changed

HISTORY.rst

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,48 @@
22
History
33
=======
44

5+
v0.8.0 (14 February 2025)
6+
-------------------------
7+
8+
This minor release introduces a new feature for temporal averaging with custom seasons
9+
spanning the calendar year. It also includes the ability to detect and drop incomplete
10+
seasons using the ``drop_incomplete_season`` config, which will eventually replace
11+
``drop_incomplete_djf`` (previously limited to DJF seasons). Additionally, a bug in the
12+
``regrid2`` regridder has been fixed, ensuring coordinates are now preserved correctly.
13+
14+
Enhancements
15+
~~~~~~~~~~~~
16+
17+
- Add support for custom seasons spanning calendar years by
18+
`Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/423
19+
20+
Bug Fixes
21+
~~~~~~~~~
22+
23+
- Fixes preserving coordinates in regrid2 by `Jason Boutte`_ and
24+
`Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/716
25+
- Fix ``DeprecationWarning`` and ``FutureWarning`` found in test suite
26+
by `Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/724
27+
28+
Documentation
29+
~~~~~~~~~~~~~
30+
31+
- Replace Miniconda with Miniforge by `Tom Vo`_ in
32+
https://github.com/xCDAT/xcdat/pull/727
33+
- Update Miniconda references to Miniforge in HPC docs by `Tom Vo`_
34+
in https://github.com/xCDAT/xcdat/pull/731
35+
36+
DevOps
37+
~~~~~~
38+
39+
- Update pre-commit hooks and add ci config by `Tom Vo`_ in
40+
https://github.com/xCDAT/xcdat/pull/732
41+
- Fix ``DeprecationWarning`` and ``FutureWarning`` found in test suite
42+
by `Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/724
43+
44+
**Full Changelog**: https://github.com/xCDAT/xcdat/compare/v0.7.3...v0.8.0
45+
46+
547
v0.7.3 (06 November 2024)
648
-------------------------
749

tbump.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
github_url = "https://github.com/xCDAT/xcdat"
33

44
[version]
5-
current = "0.7.3"
5+
current = "0.8.0"
66

77
# Example of a semver regexp.
88
# Make sure this matches current_version before

xcdat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
from xcdat.temporal import TemporalAccessor # noqa: F401
2222
from xcdat.utils import compare_datasets # noqa: F401
2323

24-
__version__ = "0.7.3"
24+
__version__ = "0.8.0"

xcdat/temporal.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,8 +1195,9 @@ def _shift_custom_season_years(self, ds: xr.Dataset) -> xr.Dataset:
11951195
A season spans the calendar year if it includes "Jan" and "Jan" is not
11961196
the first month. For example, for
11971197
``custom_seasons = ["Nov", "Dec", "Jan", "Feb", "Mar"]``:
1198-
- ["Nov", "Dec"] are from the previous year.
1199-
- ["Jan", "Feb", "Mar"] are from the current year.
1198+
1199+
- ["Nov", "Dec"] are from the previous year.
1200+
- ["Jan", "Feb", "Mar"] are from the current year.
12001201
12011202
Therefore, ["Nov", "Dec"] need to be shifted a year forward for correct
12021203
grouping.
@@ -1361,9 +1362,10 @@ def _drop_incomplete_seasons(self, ds: xr.Dataset) -> xr.Dataset:
13611362
coordinates ["2000-11-16", "2000-12-16", "2001-01-16", "2001-02-16"]
13621363
and we want to group seasons by "ND" ("Nov", "Dec") and "JFM" ("Jan",
13631364
"Feb", "Mar").
1364-
- ["2000-11-16", "2000-12-16"] is considered a complete "ND" season
1365+
1366+
- ["2000-11-16", "2000-12-16"] is considered a complete "ND" season
13651367
since both "Nov" and "Dec" are present.
1366-
- ["2001-01-16", "2001-02-16"] is considered an incomplete "JFM"
1368+
- ["2001-01-16", "2001-02-16"] is considered an incomplete "JFM"
13671369
season because it only has "Jan" and "Feb". Therefore, these
13681370
time coordinates are dropped.
13691371

0 commit comments

Comments
 (0)