Skip to content

Fix weird summary/by name crash (issue #1255)#1481

Open
Koolvansh07 wants to merge 1 commit intoholoviz:mainfrom
Koolvansh07:fix-1255-summary-name-conflict
Open

Fix weird summary/by name crash (issue #1255)#1481
Koolvansh07 wants to merge 1 commit intoholoviz:mainfrom
Koolvansh07:fix-1255-summary-name-conflict

Conversation

@Koolvansh07
Copy link

I tried to fix issue #1255.

Problem was when summary key name is same as generated dim name from by(), xarray crashes with confusing MissingDimensionsError.

I added simple check in summary.validate so it fails early with clear ValueError.

Also added regression test in test_xarray.py for the "foo foo" case from issue.

I ran targeted tests and they pass.

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.

1 participant