Skip to content

Commit f9d1566

Browse files
Bump to v0.7.2 (#700)
1 parent e9e73dd commit f9d1566

File tree

5 files changed

+56
-7
lines changed

5 files changed

+56
-7
lines changed

HISTORY.rst

+48
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,54 @@
22
History
33
=======
44

5+
v0.7.2 (02 October 2024)
6+
------------------------
7+
8+
This patch release introduces significant performance improvements to
9+
the temporal grouping averaging APIs (``group_average``,
10+
``climatology``, and ``departures``) and adds support for piControl and
11+
other simulations that have time coordinates starting at year 1 (e.g.,
12+
“0001-01-01”) when dropping incomplete seasons.
13+
14+
Enhancements
15+
~~~~~~~~~~~~
16+
17+
- [Refactor] Improve the performance of temporal group averaging by
18+
`Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/689
19+
20+
Bug Fixes
21+
~~~~~~~~~
22+
23+
- Update temporal.py to properly handle piControl and other simulations
24+
that start at year 1 when dropping incomplete seasons by `Jiwoo Lee`_ in
25+
https://github.com/xCDAT/xcdat/pull/696
26+
27+
Documentation
28+
~~~~~~~~~~~~~
29+
30+
- Add project logos to README and project overview page on docs by
31+
`Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/686
32+
- Add links to JOSS and DOE EESM content by `Tom Vo`_ in
33+
https://github.com/xCDAT/xcdat/pull/682
34+
- Add SciPy 2024 talk material by `Tom Vo`_ in
35+
https://github.com/xCDAT/xcdat/pull/658,
36+
https://github.com/xCDAT/xcdat/pull/678,
37+
https://github.com/xCDAT/xcdat/pull/679,
38+
https://github.com/xCDAT/xcdat/pull/680
39+
- Add JOSS badge to README by `Tom Vo`_ in
40+
https://github.com/xCDAT/xcdat/pull/674
41+
42+
DevOps
43+
~~~~~~
44+
45+
- Update ``setup.py`` classifiers by `Tom Vo`_ in
46+
https://github.com/xCDAT/xcdat/pull/691
47+
- Update build workflow by `Tom Vo`_ in
48+
https://github.com/xCDAT/xcdat/pull/698
49+
50+
**Full Changelog**: https://github.com/xCDAT/xcdat/compare/v0.7.1...v0.7.2
51+
52+
553
v0.7.1 (24 June 2024)
654
----------------------
755

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
test_suite="tests",
3737
tests_require=test_requires,
3838
url="https://github.com/xCDAT/xcdat",
39-
version="0.7.1",
39+
version="0.7.2",
4040
zip_safe=False,
4141
)

tbump.toml

+1-1
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.1"
5+
current = "0.7.2"
66

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

xcdat/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
from xcdat.temporal import TemporalAccessor # noqa: F401
2121
from xcdat.utils import compare_datasets # noqa: F401
2222

23-
__version__ = "0.7.1"
23+
__version__ = "0.7.2"

xcdat/dataset.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Dataset module for functions related to an xarray.Dataset."""
2+
23
from __future__ import annotations
34

45
import os
@@ -63,7 +64,7 @@ def open_dataset(
6364
data_var: Optional[str], optional
6465
The key of the non-bounds data variable to keep in the Dataset,
6566
alongside any existing bounds data variables, by default None.
66-
add_bounds: List[CFAxisKey] | None | bool
67+
add_bounds: List[CFAxisKey] | None
6768
List of CF axes to try to add bounds for (if missing), by default
6869
["X", "Y"]. Set to None to not add any missing bounds. Please note that
6970
bounds are required for many xCDAT features.
@@ -152,7 +153,7 @@ def open_mfdataset(
152153
If concatenation along more than one dimension is desired, then
153154
``paths`` must be a nested list-of-lists (see [2]_
154155
``xarray.combine_nested`` for details).
155-
add_bounds: List[CFAxisKey] | None | bool
156+
add_bounds: List[CFAxisKey] | None
156157
List of CF axes to try to add bounds for (if missing), by default
157158
["X", "Y"]. Set to None to not add any missing bounds. Please note that
158159
bounds are required for many xCDAT features.
@@ -464,7 +465,7 @@ def _postprocess_dataset(
464465
dataset: xr.Dataset,
465466
data_var: Optional[str] = None,
466467
center_times: bool = False,
467-
add_bounds: List[CFAxisKey] | None | bool = ["X", "Y"],
468+
add_bounds: List[CFAxisKey] | None = ["X", "Y"],
468469
lon_orient: Optional[Tuple[float, float]] = None,
469470
) -> xr.Dataset:
470471
"""Post-processes a Dataset object.
@@ -479,7 +480,7 @@ def _postprocess_dataset(
479480
If True, center time coordinates using the midpoint between its upper
480481
and lower bounds. Otherwise, use the provided time coordinates, by
481482
default False.
482-
add_bounds: List[CFAxisKey] | None | bool
483+
add_bounds: List[CFAxisKey] | None
483484
List of CF axes to try to add bounds for (if missing), default
484485
["X", "Y"]. Set to None to not add any missing bounds.
485486

0 commit comments

Comments
 (0)