-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
also apply combine_attrs to the attrs of the variables #4902
Merged
Merged
Changes from 24 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
28b857e
enable the tests
keewis 4ab0013
clear all attrs first
keewis c53c71a
implement the merging of variable attrs when merging
keewis df8354b
Merge branch 'master' into variable-combine_attrs
keewis a0a2265
implement the merging of variable attrs when concatenating
keewis 9af2c3f
add tests for combine_attrs on variables with combine_*
keewis 78f9ef9
modify tests in test_combine which have wrong expectation about attrs
keewis 77d0208
move the attrs preserving into the try / except
keewis b234ddf
clear variable attrs where necessary
keewis 0cbf1a4
rewrite the main object merge_attrs tests
keewis 71d605a
clear the variable attrs first
keewis fb1fcb9
add combine_attrs="no_conflict"
keewis dad9c38
Merge branch 'master' into variable-combine_attrs
keewis 3ee536d
add a entry to whats-new.rst
keewis f03c5e8
Merge branch 'master' into variable-combine_attrs
keewis 78a3efd
Merge branch 'master' into variable-combine_attrs
keewis abacdc9
Update doc/whats-new.rst
keewis b4b64c1
dedent a hidden test
keewis cd3fd0e
fix whats-new.rst
keewis 8ca5e44
conditionally exclude attrs
keewis 34d6615
use add_attrs=False or construct manually instead of clearing attrs
keewis 8ca3aeb
also merge attrs for indexed variables
keewis 6e06dc4
use pytest.raises instead of raises_regex
keewis 2c5c1be
Merge branch 'master' into variable-combine_attrs
keewis cc08b53
switch the default for merge's combine_attrs to override
keewis 94c7896
Merge branch 'master' into variable-combine_attrs
keewis dffda43
use pytest.raises
keewis db0fc56
update whats-new.rst [skip-ci]
keewis a1f1dda
fix whats-new.rst [skip-ci]
keewis 59f0732
Merge branch 'master' into variable-combine_attrs
keewis 065e757
provide more context for the change of the default value [skip-ci]
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 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 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 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 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 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we also check for
Dataset.attrs
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had thought we already did that. Turns out we don't, which I didn't realize because that file is in urgent need of a refactor: some test names still reference the removed
auto_combine
,combine_by_coords
andcombine_nested
are ordered in a way I can't figure out, and I accidentally contributed to the chaos by adding all new tests toTestCombineAuto
. Since this seems like a bigger effort I'll try to send in a PR which cleans this up.