Skip to content

Commit

Permalink
Bump to v0.8.0 (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvothecoder authored Feb 15, 2025
1 parent 8824b32 commit b260fcb
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 6 deletions.
42 changes: 42 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,48 @@
History
=======

v0.8.0 (14 February 2025)
-------------------------

This minor release introduces a new feature for temporal averaging with custom seasons
spanning the calendar year. It also includes the ability to detect and drop incomplete
seasons using the ``drop_incomplete_season`` config, which will eventually replace
``drop_incomplete_djf`` (previously limited to DJF seasons). Additionally, a bug in the
``regrid2`` regridder has been fixed, ensuring coordinates are now preserved correctly.

Enhancements
~~~~~~~~~~~~

- Add support for custom seasons spanning calendar years by
`Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/423

Bug Fixes
~~~~~~~~~

- Fixes preserving coordinates in regrid2 by `Jason Boutte`_ and
`Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/716
- Fix ``DeprecationWarning`` and ``FutureWarning`` found in test suite
by `Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/724

Documentation
~~~~~~~~~~~~~

- Replace Miniconda with Miniforge by `Tom Vo`_ in
https://github.com/xCDAT/xcdat/pull/727
- Update Miniconda references to Miniforge in HPC docs by `Tom Vo`_
in https://github.com/xCDAT/xcdat/pull/731

DevOps
~~~~~~

- Update pre-commit hooks and add ci config by `Tom Vo`_ in
https://github.com/xCDAT/xcdat/pull/732
- Fix ``DeprecationWarning`` and ``FutureWarning`` found in test suite
by `Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/724

**Full Changelog**: https://github.com/xCDAT/xcdat/compare/v0.7.3...v0.8.0


v0.7.3 (06 November 2024)
-------------------------

Expand Down
2 changes: 1 addition & 1 deletion tbump.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
github_url = "https://github.com/xCDAT/xcdat"

[version]
current = "0.7.3"
current = "0.8.0"

# Example of a semver regexp.
# Make sure this matches current_version before
Expand Down
2 changes: 1 addition & 1 deletion xcdat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
from xcdat.temporal import TemporalAccessor # noqa: F401
from xcdat.utils import compare_datasets # noqa: F401

__version__ = "0.7.3"
__version__ = "0.8.0"
10 changes: 6 additions & 4 deletions xcdat/temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1195,8 +1195,9 @@ def _shift_custom_season_years(self, ds: xr.Dataset) -> xr.Dataset:
A season spans the calendar year if it includes "Jan" and "Jan" is not
the first month. For example, for
``custom_seasons = ["Nov", "Dec", "Jan", "Feb", "Mar"]``:
- ["Nov", "Dec"] are from the previous year.
- ["Jan", "Feb", "Mar"] are from the current year.
- ["Nov", "Dec"] are from the previous year.
- ["Jan", "Feb", "Mar"] are from the current year.
Therefore, ["Nov", "Dec"] need to be shifted a year forward for correct
grouping.
Expand Down Expand Up @@ -1361,9 +1362,10 @@ def _drop_incomplete_seasons(self, ds: xr.Dataset) -> xr.Dataset:
coordinates ["2000-11-16", "2000-12-16", "2001-01-16", "2001-02-16"]
and we want to group seasons by "ND" ("Nov", "Dec") and "JFM" ("Jan",
"Feb", "Mar").
- ["2000-11-16", "2000-12-16"] is considered a complete "ND" season
- ["2000-11-16", "2000-12-16"] is considered a complete "ND" season
since both "Nov" and "Dec" are present.
- ["2001-01-16", "2001-02-16"] is considered an incomplete "JFM"
- ["2001-01-16", "2001-02-16"] is considered an incomplete "JFM"
season because it only has "Jan" and "Feb". Therefore, these
time coordinates are dropped.
Expand Down

0 comments on commit b260fcb

Please sign in to comment.