forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xarray.backends refactor (pydata#2261)
* WIP: xarray.backends.file_manager for managing file objects. This is intended to replace both PickleByReconstructionWrapper and DataStorePickleMixin with something more compartmentalized. xref GH2121 * Switch rasterio to use FileManager * lint fixes * WIP: rewrite FileManager to always use an LRUCache * Test coverage * Don't use move_to_end * minor clarification * Switch FileManager.acquire() to a method * Python 2 compat * Update xarray.set_options() to add file_cache_maxsize and validation * Add assert for FILE_CACHE.maxsize * More docstring for FileManager * Add accidentally omited tests for LRUCache * Adapt scipy backend to use FileManager * Stickler fix * Fix failure on Python 2.7 * Finish adjusting backends to use FileManager * Fix bad import * WIP on distributed * More WIP * Fix distributed write tests * Fixes * Minor fixup * whats new * More refactoring: remove state from backends entirely * Cleanup * Fix failing in-memory datastore tests * Fix inaccessible datastore * fix autoclose warnings * Fix PyNIO failures * No longer disable HDF5 file locking We longer need to explicitly HDF5_USE_FILE_LOCKING='FALSE' because we properly close open files. * whats new and default file cache size * Whats new tweak * Refactor default lock logic to backend classes * Rename get_resource_lock -> get_write_lock * Don't acquire unnecessary locks in __getitem__ * Fix bad merge * Fix import * Remove unreachable code
- Loading branch information
Showing
28 changed files
with
1,496 additions
and
983 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,7 @@ | |
"scipy": [""], | ||
"bottleneck": ["", null], | ||
"dask": [""], | ||
"distributed": [""], | ||
}, | ||
|
||
|
||
|
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.