-
-
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
xarray.backends refactor #2261
Merged
Merged
xarray.backends refactor #2261
Changes from 26 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
4faaf3a
WIP: xarray.backends.file_manager for managing file objects.
shoyer c82a38c
Switch rasterio to use FileManager
shoyer 7a55a30
lint fixes
shoyer 51463dd
WIP: rewrite FileManager to always use an LRUCache
shoyer 23e132f
Test coverage
shoyer 8fc8183
Don't use move_to_end
shoyer 422944b
minor clarification
shoyer aea0a1a
Switch FileManager.acquire() to a method
shoyer 4366c0b
Python 2 compat
shoyer f35b7e7
Update xarray.set_options() to add file_cache_maxsize and validation
shoyer 057cad2
Add assert for FILE_CACHE.maxsize
shoyer 0f3e656
More docstring for FileManager
shoyer 1a0cc10
Add accidentally omited tests for LRUCache
shoyer 8784e6b
Merge branch 'master' into file-manager
shoyer 83d9b10
Adapt scipy backend to use FileManager
shoyer a0074ff
Stickler fix
shoyer 062ba96
Fix failure on Python 2.7
shoyer 2d41b29
Finish adjusting backends to use FileManager
shoyer 2adf486
Fix bad import
shoyer 76f151c
WIP on distributed
shoyer 769f079
More WIP
shoyer 3e97264
Merge branch 'master' into file-manager
shoyer 5e67efe
Fix distributed write tests
shoyer 8dc77c4
Merge branch 'master' into file-manager
shoyer 1d38335
Fixes
shoyer 6350ca6
Minor fixup
shoyer 4aa0df7
whats new
shoyer 67377c7
More refactoring: remove state from backends entirely
shoyer 8c00f44
Merge branch 'master' into file-manager
shoyer 2a5d1f0
Cleanup
shoyer a6c170b
Fix failing in-memory datastore tests
shoyer 009e30d
Fix inaccessible datastore
shoyer 14118ea
fix autoclose warnings
shoyer c778488
Fix PyNIO failures
shoyer fe14ebf
No longer disable HDF5 file locking
shoyer f1026ce
whats new and default file cache size
shoyer e13406b
Whats new tweak
shoyer 465dfae
Refactor default lock logic to backend classes
shoyer 55d35c8
Rename get_resource_lock -> get_write_lock
shoyer c8fbadc
Don't acquire unnecessary locks in __getitem__
shoyer ede8ef0
Merge branch 'master' into file-manager
shoyer 220c302
Merge branch 'master' into file-manager
shoyer 36f1156
Fix bad merge
shoyer c6f43dd
Fix import
shoyer 8916bc7
Remove unreachable code
shoyer 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
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.
just a reminder to synthesize your most recent post on this PR.