-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
keep attrs in xarray.where #4687
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 19 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
acda14e
allow controlling xarray.where using the keep_attrs option
keewis 32ee8e0
Merge branch 'master' into where-keep_attrs
keewis 386bcd3
black
keewis b60447a
document that the attributes of x and y will be ignored
keewis 1db163b
always keep the attrs
keewis e62eb6d
add a entry to whats-new.rst
keewis 667adc8
update the tests
keewis 42540ae
Merge branch 'master' into where-keep_attrs
dcherian 7ce63d0
Merge branch 'master' into where-keep_attrs
dcherian d69d0f6
Merge branch 'main' into pr/4687
Illviljan c482ca1
Merge branch 'main' into where-keep_attrs
keewis 259bf82
add a keep_attrs parameter to xr.where
keewis 8390720
rewrite the test to demonstrate keep_attrs
keewis edf9927
make mypy check the test
keewis 883af06
fix whats-new.rst
keewis 72addb3
remove a merge artifact
keewis a03a82e
more merge artifacts
keewis 6ae1339
just make sure the value is exactly True
keewis 456b748
Merge branch 'main' into where-keep_attrs
max-sixty 39275b5
extend the comment
keewis 55cecb4
Merge branch 'main' into where-keep_attrs
keewis 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
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
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
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
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.