Skip to content

Make _replace more lenient. #9517

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Sep 19, 2024
Merged

Conversation

dcherian
Copy link
Contributor

Comment on lines 537 to 538
dims_are_equal = set(variable.dims) == set(self.dims)
size_is_equal = (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't see why this function used strict equality before

@dcherian dcherian requested a review from max-sixty September 18, 2024 22:05
@dcherian dcherian added the run-slow-hypothesis Run slow hypothesis tests label Sep 18, 2024
Copy link
Collaborator

@max-sixty max-sixty left a comment

Choose a reason for hiding this comment

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

Nice, thank you!

@dcherian
Copy link
Contributor Author

flaky failure is unrelated.

@dcherian dcherian merged commit 3c74509 into pydata:main Sep 19, 2024
26 of 28 checks passed
hollymandel pushed a commit to hollymandel/xarray that referenced this pull request Sep 23, 2024
* Make _replace more lenient.

Closes pydata#5361

* review comments
@dcherian dcherian deleted the fix-groupby-transpose branch September 24, 2024 12:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
run-slow-hypothesis Run slow hypothesis tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent behavior in grouby depending on the dimension order
2 participants