-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* implement `compute` and `load` * also shallow-copy variables * implement `chunksizes` * add tests for `load` * add tests for `chunksizes` * improve the `load` tests using `DataTree.chunksizes` * add a test for `compute` * un-xfail a xpassing test * implement and test `DataTree.chunk` * link to `Dataset.load` Co-authored-by: Tom Nicholas <tom@cworthy.org> * use `tree.subtree` to get absolute paths * filter out missing dims before delegating to `Dataset.chunk` * fix the type hints for `DataTree.chunksizes` * try using `self.from_dict` instead * type-hint intermediate test variables * use `_node_dims` instead * raise on unknown chunk dim * check that errors in `chunk` are raised properly * adapt the docstrings of the new methods * allow computing / loading unchunked trees * reword the `chunksizes` properties * also freeze the top-level chunk sizes * also reword `DataArray.chunksizes` * fix a copy-paste error * same for `NamedArray.chunksizes` --------- Co-authored-by: Tom Nicholas <tom@cworthy.org>
- Loading branch information
1 parent
521b087
commit 1f5889a
Showing
5 changed files
with
342 additions
and
14 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
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.