Skip to content

Commit

Permalink
unpack generator properly
Browse files Browse the repository at this point in the history
Co-authored-by: Stephan Hoyer <[email protected]>
  • Loading branch information
TomNicholas and shoyer authored Oct 6, 2024
1 parent 22f2726 commit e879dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/user-guide/hierarchical-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ This alignment check is performed up through the tree, all the way to the root,

.. code:: python
xr.align(child.dataset, parent.dataset for parent in child.parents, join="exact")
xr.align(child.dataset, *(parent.dataset for parent in child.parents), join="exact")
To represent our unalignable data in a single :py:class:`~xarray.DataTree`, we must instead place all variables which are a function of these different-length dimensions into nodes that are not direct descendents of one another, e.g. organize them as siblings.

Expand Down

0 comments on commit e879dbb

Please sign in to comment.