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

Allow nan functions to work with xarray #670

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Conversation

tomwhite
Copy link
Member

Fixes #153

I missed pydata/xarray#9798, which changes Xarray duck array ops to call nanmean, nansum etc on the array namespace. So instead of #475, we can just make sure that the nan functions are in the namespace returned by __array_namespace__, which should just be the top-level cubed namespace (following #473).

@tomwhite tomwhite added array api xarray-integration Uses or required for cubed-xarray integration labels Jan 15, 2025
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.

np.nanmean executes eagerly on cubed arrays but lazily on dask arrays
1 participant