Skip to content

Commit 38d5308

Browse files
authored
Add note on DataTree.map_over_datasets to migration guide (#9804)
* new blank whatsnew * add note on map_over_subtree -> map_over_datasets
1 parent 1c88f1e commit 38d5308

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DATATREE_MIGRATION_GUIDE.md

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ A number of other API changes have been made, which should only require minor mo
4545
- The `DataTree.parent` property is now read-only. To assign a ancestral relationships directly you must instead use the `.children` property on the parent node, which remains settable.
4646
- Similarly the `parent` kwarg has been removed from the `DataTree.__init__` constructor.
4747
- DataTree objects passed to the `children` kwarg in `DataTree.__init__` are now shallow-copied.
48+
- `DataTree.map_over_subtree` has been renamed to `DataTree.map_over_datasets`, and changed to no longer work like a decorator. Instead you use it to apply the function and arguments directly, more like how `xarray.apply_ufunc` works.
4849
- `DataTree.as_array` has been replaced by `DataTree.to_dataarray`.
4950
- A number of methods which were not well tested have been (temporarily) disabled. In general we have tried to only keep things that are known to work, with the plan to increase API surface incrementally after release.
5051

0 commit comments

Comments
 (0)