Skip to content

Commit 8238fab

Browse files
Bump to v0.11.2 (#829)
1 parent 96cee8a commit 8238fab

File tree

5 files changed

+32
-6
lines changed

5 files changed

+32
-6
lines changed

HISTORY.rst

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

5+
v0.11.2 (02 February 2026)
6+
--------------------------
7+
8+
This patch release fixes coordinate assignment behavior and attributes dropping in
9+
the PCMDI land sea masking API. It also improves documentation around the default
10+
use of `cftime` in xCDAT.
11+
12+
Bug Fixes
13+
~~~~~~~~~
14+
15+
- Replace in-place ``.values`` assignment with ``assign_coords()`` by
16+
`Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/827
17+
- Fix attributes dropping in `pcmdi_land_sea_mask()` due to change in Xarray 2026.01.0
18+
by `Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/829
19+
20+
Documentation
21+
~~~~~~~~~~~~~
22+
23+
- Update ``cftime`` section in FAQs by
24+
`Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/828
25+
26+
**Full Changelog**: https://github.com/xCDAT/xcdat/compare/v0.11.1...v0.11.2
27+
28+
529
v0.11.1 (06 January 2026)
630
-------------------------
731

conda-env/dev.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ dependencies:
2727
- nc-time-axis >=1.4.1
2828
# Documentation
2929
# ==================
30-
- sphinx
30+
# NOTE: Constrain sphinx to <=9.0 until support for sphinx-auto-summary-accessors is added in a later version.
31+
# See https://github.com/xarray-contrib/sphinx-autosummary-accessors/issues/165
32+
- sphinx <=9.0
3133
- sphinx-autosummary-accessors
3234
- sphinx-book-theme
3335
- sphinx-copybutton

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.11.1"
5+
current = "0.11.2"
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
@@ -29,4 +29,4 @@
2929
# Initialize xCDAT logger once when the package is imported
3030
_setup_xcdat_logger()
3131

32-
__version__ = "0.11.1"
32+
__version__ = "0.11.2"

xcdat/mask.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,12 @@ def pcmdi_land_sea_mask(
280280
)
281281

282282
mask = source_regrid.copy()
283-
# Set keep_attrs=False to ensure that attributes from the argument x (1 in
283+
# Set keep_attrs=drop_conflicts to ensure that attributes from the argument x (1 in
284284
# this case) are not copied. This preserves the existing attributes of the
285-
# data variable. The default value is None, which removes all attributes,
285+
# data variable. The default value None and False removes all attributes,
286286
# while True would incorrectly copy attributes from x.
287287
mask[source_data_var] = xr.where(
288-
source_regrid[source_data_var] > 0.5, 1, 0, keep_attrs=False
288+
source_regrid[source_data_var] > 0.5, 1, 0, keep_attrs="drop_conflicts"
289289
).astype("i")
290290

291291
lon = mask[source_data_var].cf["X"]

0 commit comments

Comments
 (0)