Skip to content

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

2 participants