Skip to content

More Array API changes - #7067

Merged
dcherian merged 8 commits into
pydata:mainfrom
tomwhite:more-array-api
Oct 18, 2022
Merged

More Array API changes#7067
dcherian merged 8 commits into
pydata:mainfrom
tomwhite:more-array-api

Conversation

@tomwhite

@tomwhitetomwhite commented Sep 22, 2022

Copy link
Copy Markdown
Contributor

Including aggregation with nans, astype, where, stack.

This is a follow-on to #6804, delegating more functions to np or xp as appropriate.

  • Tests added

@github-actionsgithub-actionsBot added topic-arrays related to flexible array support topic-CF conventions labels Sep 22, 2022

@keewiskeewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thanks the continued work on this, @tomwhite

Comment threadxarray/core/variable.py Outdated
Comment threadxarray/core/nanops.py Outdated
Comment threadxarray/core/duck_array_ops.py
@tomwhite

Copy link
Copy Markdown
ContributorAuthor

This is great feedback - thanks @keewis! I will take a look at implementing your suggestions.

@tomwhite

Copy link
Copy Markdown
ContributorAuthor

Updated with all the suggestions. How does this look now?

@TomNicholasTomNicholas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems to me like all the comments have been addressed, nice!

@dcherian

Copy link
Copy Markdown
Contributor

image

Looks like we're good to go here with respect to pint. Thanks @tomwhite !

Comment threadxarray/core/duck_array_ops.py
@dcheriandcherian added the plan to merge Final call for comments label Oct 17, 2022
@dcherian
dcherian enabled auto-merge (squash) October 18, 2022 16:40
@dcherian
dcherian merged commit 7f1f911 into pydata:mainOct 18, 2022
keewis pushed a commit to keewis/xarray that referenced this pull request Oct 19, 2022
* More Array API changes, including aggregation with nans, astype, where, stack.
* Add `reshape` to `duck_array_ops`
* Simplify `as_shared_dtype`
* Add `sum_where` to `duck_array_ops`
* Remove unused `_replace_nan` function
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update xarray/core/duck_array_ops.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plan to mergeFinal call for commentstopic-arraysrelated to flexible array supporttopic-CF conventions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@tomwhite@dcherian@shoyer@keewis@TomNicholas