Skip to content

Conversation

@tomwhite
Copy link
Member

The isin function hasn't been standardized yet (see data-apis/array-api#959), but it's useful to add a version now (following the API in the proposed PR) so that Xarray's isin function works.

@tomwhite tomwhite added array api xarray-integration Uses or required for cubed-xarray integration labels Nov 18, 2025
Comment on lines +19 to +22
adjust_chunks={axis: lambda _: 1 for axis in x2_axes},
)

result = cubed_any(mapped, axis=x2_axes)
Copy link
Contributor

Choose a reason for hiding this comment

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

hehe still love this algorithm.

@tomwhite tomwhite merged commit 0486388 into main Nov 19, 2025
20 of 21 checks passed
@tomwhite tomwhite deleted the isin branch November 19, 2025 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

array api xarray-integration Uses or required for cubed-xarray integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants