Skip to content

Fix combine_by_coords monotonicity check for non-concat dims#10945

Closed
HarshitZom wants to merge 1 commit intopydata:mainfrom
HarshitZom:598d82bc-64b4-44c5-92b2-d0fc489d9b33
Closed

Fix combine_by_coords monotonicity check for non-concat dims#10945
HarshitZom wants to merge 1 commit intopydata:mainfrom
HarshitZom:598d82bc-64b4-44c5-92b2-d0fc489d9b33

Conversation

@HarshitZom
Copy link
Copy Markdown

Only require monotonic coordinates along concatenation dimensions. Previously, identical non-monotonic coordinates on non-concat dims erroneously raised a ValueError. Includes regression test.

Closes # (refer to issue number if applicable)

  • Closes #xxxx
  • Tests added
  • User visible changes (including notable bug fixes) are documented in whats-new.rst
  • New functions/methods are listed in api.rst

Only require monotonic coordinates along concatenation dimensions.
Previously, identical non-monotonic coordinates on non-concat dims
erroneously raised a ValueError. Includes regression test.

Closes # (refer to issue number if applicable)
Copy link
Copy Markdown
Member

@shoyer shoyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thank you!

Could you please merge in the latest xarray changes from main and verify it still works? Also consider adding a brief note to whats-new.rst.

@jsignell
Copy link
Copy Markdown
Member

I'm going to close this since it looks like is based off a very old version of the code and the test that is added in this PR passes already on main. @HarshitZom please just reopen and merge/rebase and add another test if there is something that still needs fixing here.

@jsignell jsignell closed this Jan 30, 2026
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.

3 participants