Skip to content

fix: Don't drop orphaned dims on weighted reductions - #11562

Open
charles-turner-1 wants to merge 13 commits into
pydata:mainfrom
charles-turner-1:11560-weighted-orphaned-dims
Open

fix: Don't drop orphaned dims on weighted reductions #11562
charles-turner-1 wants to merge 13 commits into
pydata:mainfrom
charles-turner-1:11560-weighted-orphaned-dims

Conversation

@charles-turner-1

@charles-turner-1 charles-turner-1 commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a _restore_dims method to DatasetWeighted which restored orphaned dims after a disjoint reduction.

Checklist

AI Disclosure

I asked Claude Opus 4.8 for help after getting stuck around 294d9e5.

All code human written.

@charles-turner-1
charles-turner-1 marked this pull request as draft September 5, 2026 04:25
Comment thread xarray/computation/weighted.py Outdated
Comment thread pixi.toml Outdated
@charles-turner-1
charles-turner-1 force-pushed the 11560-weighted-orphaned-dims branch from 056c07d to 294d9e5 Compare September 7, 2026 00:36
Comment thread pixi.toml Outdated
@charles-turner-1
charles-turner-1 marked this pull request as ready for review September 7, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Weighted reductions drop orphaned dimensions

1 participant