Skip to content

Commit 2f74c30

Browse files
committed
use update and add what's new
1 parent dc78afa commit 2f74c30

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cf_xarray/accessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ def add_bounds(self, keys: Union[str, Iterable[str]]):
16141614

16151615
dimensions = set()
16161616
for key in keys:
1617-
dimensions |= set(
1617+
dimensions.update(
16181618
apply_mapper(_get_dims, self._obj, key, error=False, default=[key])
16191619
)
16201620

doc/whats-new.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ What's New
66
v0.5.2 (unreleased)
77
===================
88

9+
- Replace the ``dims`` argument of :py:meth:`Dataset.cf.add_bounds` with ``keys``, allowing to use CF keys. By `Mattia Almansi`_.
910
- Added :py:attr:`DataArray.cf.formula_terms` and :py:attr:`Dataset.cf.formula_terms`.
1011
By `Deepak Cherian`_.
1112
- Added :py:attr:`Dataset.cf.bounds` to return a dictionary mapping valid keys to the variable names of their bounds. By `Mattia Almansi`_.

0 commit comments

Comments
 (0)