Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to v0.8.0 #733

Merged
merged 4 commits into from
Feb 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading