Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ Bug Fixes
- Fix :py:meth:`Dataset.interp` silently dropping datetime64 and timedelta64
variables, through enabling their interpolation (:issue:`10900`, :pull:`11081`).
By `Emmanuel Ferdman <https://github.com/emmanuel-ferdman>`_.
- :func:`combine_by_coords` no longer returns an empty dataset when a generator is passed as ``data_objects`` (:issue:`10114`, :pull:`11265`).
By `Amartya Anand <https://github.com/SurfyPenguin>`_.

Documentation
~~~~~~~~~~~~~
Expand Down
2 changes: 2 additions & 0 deletions xarray/structure/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,8 @@ def combine_by_coords(
Finally, if you attempt to combine a mix of unnamed DataArrays with either named
DataArrays or Datasets, a ValueError will be raised (as this is an ambiguous operation).
"""
data_objects = list(data_objects)

if any(isinstance(data_object, DataTree) for data_object in data_objects):
raise NotImplementedError(
"combine_by_coords() does not yet support DataTree objects."
Expand Down
Loading