Skip to content

Conversation

@keewis
Copy link
Member

@keewis keewis commented Dec 23, 2025

The arg reduction methods in Variable return behave differently depending on the dims parameter:

  • for dim=... or dim=None: return a dict containing the indices for all dims
  • for dim as a list: return a dict containing the indices for the given dims
  • for dim as a hashable: return a single int index for the raveled array

We thus need to construct the proper expected value to be able to check the result.

@keewis keewis merged commit 8e07666 into xarray-contrib:main Dec 23, 2025
8 checks passed
@keewis keewis deleted the comparison-argreduction branch December 23, 2025 14:03
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