-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Reimplement Datatree typed ops #9619
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
812d207
test unary op
TomNicholas 1b9c089
implement and generate unary ops
TomNicholas 2d9cef4
test for unary op with inherited coordinates
TomNicholas 4bb8902
re-enable arithmetic tests
TomNicholas 8e7c1da
implementation for binary ops
TomNicholas 909ae0e
test ds * dt commutativity
TomNicholas 03ce2c5
ensure other types defer to DataTree, thus fixing #9365
TomNicholas 12112f1
test for inplace binary op
TomNicholas b823290
pseudocode implementation of inplace binary op, and xfail test
TomNicholas 7147bb3
remove some unneeded type: ignore comments
TomNicholas 368d456
return type should be DataTree
TomNicholas 2c740b4
type datatree ops as accepting dataset-compatible types too
TomNicholas 1eae418
use same type hinting hack as Dataset does for __eq__ not being same …
TomNicholas bb019da
ignore return type
TomNicholas 20199cb
add some methods to api docs
TomNicholas 7634b6c
don't try to import DataTree.astype in API docs
TomNicholas 2814801
test to check that single-node trees aren't broadcast
TomNicholas 1fcbe02
Merge branch 'main' into datatree-ops
TomNicholas 9e2dfad
return NotImplemented
TomNicholas 399c6e1
Merge branch 'datatree-ops' of https://github.com/TomNicholas/xarray …
TomNicholas 304eb19
remove pseudocode for inplace binary ops
TomNicholas 7dbc817
Merge branch 'main' into datatree-ops
TomNicholas c7d8060
map_over_subtree -> map_over_datasets
TomNicholas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test ds * dt commutativity
- Loading branch information
commit 909ae0e949286bd659769ef8b493898f9fdfca03
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.