Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Generalize explicit_indexing_adapter #8408

Closed
wants to merge 1 commit into from
Closed

Conversation

dcherian
Copy link
Contributor

@dcherian dcherian commented Nov 3, 2023

Use as_indexable instead of NumpyIndexingAdapter

Copy link
Contributor

@weiji14 weiji14 left a comment

Choose a reason for hiding this comment

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

Also need a unit test as you mentioned at xarray-contrib/cupy-xarray#10 (comment) 😉

Comment on lines +863 to +864
# index the loaded ndarray
result = as_indexable(result)[numpy_indices]
Copy link
Contributor

Choose a reason for hiding this comment

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

Docstring above might need some changes to say just 'duck array' instead of 'NumPy array'?

@dcherian dcherian closed this Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants