Skip to content

Commit 4b7c074

Browse files
authored
[docs] DataTree cannot be constructed from DataArray
1 parent bb539d8 commit 4b7c074

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/user-guide/data-structures.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ keys), and so has the same key properties:
524524
A single :py:class:`~xarray.DataTree` object acts much like a single :py:class:`~xarray.Dataset` object, and
525525
has a similar set of dict-like methods defined upon it. However, :py:class:`~xarray.DataTree`\s
526526
can also contain other :py:class:`~xarray.DataTree` objects, so they can be thought of as
527-
nested dict-like containers of both :py:class:`xarray.DataArray`\s and :py:class:`~xarray.DataTree`\s.
527+
nested dict-like containers of both :py:class:`xarray.Dataset`\s and :py:class:`~xarray.DataTree`\s.
528528

529529
A single datatree object is known as a "node", and its position relative to
530530
other nodes is defined by two more key properties:
@@ -558,7 +558,7 @@ specifying the nodes' relationship to one another as you create each one.
558558
The :py:class:`~xarray.DataTree` constructor takes:
559559

560560
- ``dataset``: The data that will be stored in this node, represented by a single
561-
:py:class:`xarray.Dataset`, or a named :py:class:`xarray.DataArray`.
561+
:py:class:`xarray.Dataset`.
562562
- ``children``: The various child nodes (if there are any), given as a mapping
563563
from string keys to :py:class:`~xarray.DataTree` objects.
564564
- ``name``: A string to use as the name of this node.

0 commit comments

Comments
 (0)