You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DATATREE_MIGRATION_GUIDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ A number of other API changes have been made, which should only require minor mo
41
41
- The method `DataTree.to_dataset()` still exists but now has different options for controlling which variables are present on the resulting `Dataset`, e.g. `inherit=True/False`.
42
42
-`DataTree.copy()` also has a new `inherit` keyword argument for controlling whether or not coordinates defined on parents are copied (only relevant when copying a non-root node).
43
43
- 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.
44
-
- Similarly the `parent` kwarg has been removed from the `DataTree.__init__`constuctor.
44
+
- Similarly the `parent` kwarg has been removed from the `DataTree.__init__`constructor.
45
45
- DataTree objects passed to the `children` kwarg in `DataTree.__init__` are now shallow-copied.
46
46
-`DataTree.as_array` has been replaced by `DataTree.to_dataarray`.
47
47
- 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.
We have used the :py:meth:`~xarray.DataTree.from_dict` constructor method as a prefered way to quickly create a whole tree,
180
+
We have used the :py:meth:`~xarray.DataTree.from_dict` constructor method as a preferred way to quickly create a whole tree,
181
181
and :ref:`filesystem paths` (to be explained shortly) to select two nodes of interest.
182
182
183
183
.. ipython:: python
@@ -703,7 +703,7 @@ Data Alignment
703
703
~~~~~~~~~~~~~~
704
704
705
705
The data in different datatree nodes are not totally independent. In particular dimensions (and indexes) in child nodes must be exactly aligned with those in their parent nodes.
706
-
Exact aligment means that shared dimensions must be the same length, and indexes along those dimensions must be equal.
706
+
Exact alignment means that shared dimensions must be the same length, and indexes along those dimensions must be equal.
707
707
708
708
.. note::
709
709
If you were a previous user of the prototype `xarray-contrib/datatree <https://github.com/xarray-contrib/datatree>`_ package, this is different from what you're used to!
0 commit comments