Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve order of variables in combine_by_coords #9070

Merged
merged 22 commits into from
Jan 30, 2025
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
fix groupby
  • Loading branch information
kmuehlbauer committed Jan 27, 2025
commit 3e3bfadae71eb6cd5ce7c6516850a28ca54386b0
2 changes: 1 addition & 1 deletion xarray/core/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def _combine_all_along_first_dim(
combine_attrs: CombineAttrsOptions = "drop",
):
# Group into lines of datasets which must be combined along dim
grouped = groupby_defaultdict(combined_ids, key=_new_tile_id)
grouped = groupby_defaultdict(list(combined_ids.items()), key=_new_tile_id)

# Combine all of these datasets along dim
new_combined_ids = {}
Expand Down
Loading