Skip to content

Commit 67ff2f3

Browse files
aladinorjsignell
authored andcommitted
Add inherit='all_coords' option to DataTree.to_dataset() (#11230)
* Add inherit='all' option to DataTree.to_dataset() * Add whats-new entry for inherit='all' (#11230) * Fix prune() signature accidentally modified by ruff-format * Fix mypy errors: remove unused type-ignore, add typing.cast in test * Rename inherit='all' to inherit='all_coords' per review feedback
1 parent dd146c0 commit 67ff2f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/whats-new.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ New Features
1818
guarantees that chunks in xarray match on-disk chunks or multiples of them.
1919
No chunk splitting allowed. (:pull:`11060`).
2020
By `Julia Signell <https://github.com/jsignell>`_
21+
- Added ``inherit='all_coords'`` option to :py:meth:`DataTree.to_dataset` to inherit
22+
all parent coordinates, not just indexed ones (:issue:`10812`, :pull:`11230`).
23+
By `Alfonso Ladino <https://github.com/aladinor>`_.
2124

2225
Breaking Changes
2326
~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)