-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Preserve attrs with coarsen #4360
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 all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
991b58b
pass **kwargs into
jukent 6f32981
change _replace to copy in coarsen return
jukent 9ea8f8d
copy back to replace, variable=copy
jukent 168eaba
take out self.copy
jukent 30acd77
update pre-commit config (tags not branches)
jukent 6f10032
add test that coarsen maintains OG object
jukent 027cfc0
del comment
jukent 8ceb575
check global for keep attrs
jukent 3549864
black reformatter
jukent d737db0
line break
jukent c11c2d6
variable._attrs to variable.attrs
jukent 4889aa5
if not keep_attrs
jukent f415a64
{} to None
jukent a70410e
set_options goes in a with block
jukent 5cf15f6
remove test dependency on netcdf
jukent 8677148
Merge branch 'master' into fixtests
jukent 1b04f7a
add bug fix to whats-new.rst
jukent 89e6cad
Merge branch 'fixtests' of github.com:jukent/xarray into fixtests
jukent f5c247a
Update doc/whats-new.rst
jukent f0cf2ef
go back to v0.1.2 of blackdock
jukent b905064
add test_coarsen_keep_attrs to test_dataarray.py
jukent abdfbd6
fix tests
jukent 8d89ff7
Merge branch 'master' into fixtests
jukent 4f40d29
black test_dataarray
jukent c4fd95d
Merge branch 'fixtests' of github.com:jukent/xarray into fixtests
jukent 9fe8bc5
xr.set_options
jukent 67cb7d6
move keep_attrs to coarsen from _reshape_coarsen
jukent 417307d
flake8
jukent 9a85c76
clean up
jukent dc8d9cd
move keep_attrs to fx signature
jukent 2c19ae6
remove kwarg check for keep_attrs
jukent f329ff9
black on variable.py
jukent 96d7207
fix test_variable
jukent 17369e7
Format with black
max-sixty 1ebd2c3
fix test
jukent b52f183
check for global attribute
jukent eeb8f17
black variable.py
jukent 7c57161
black test_variable.py
jukent 3223bbe
format w black
jukent 438de49
Update xarray/core/variable.py
jukent 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
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.