Commit 8d2fb47
feat/batch creation (#2665)
* sketch out batch creation routine
* scratch state of easy batch creation
* rename tupleize keys
* tests and proper implementation for create_nodes and create_hierarchy
* privatize
* use Posixpath instead of Path in tests; avoid redundant cast
* restore cast
* pureposixpath instead of posixpath
* group-level create_hierarchy
* docstring
* sketch out from_flat for groups
* better concurrency for v2
* revert change to default concurrency
* create root correctly
* working _from_flat
* working dict serialization for _ImplicitGroupMetadata
* remove implicit group metadata, and add some key name normalization
* add path normalization routines
* use _join_paths for safer path concatenation
* handle overwrite
* rename _from_flat to _create_rooted_hierarchy, add sync version
* add test for _create_rooted_hierarchy when the output should be an array, and for when the input is invalid
* increase coverage, one way or another
* remove replace kwarg for _set_return_key
* shield lines from coverage
* add some tests
* lint
* improve coverage with more tests
* use store + path instead of StorePath for hierarchy api
* docstrings
* docstrings
* release notes
* refactor sync / async functions, and make tests more compact accordingly
* keyerror -> filenotfounderror
* keyerror -> filenotfounderror, fixup
* add top-level exports
* mildly refactor node input validation
* simplify path normalization
* refactor to separate sync and async routines
* remove semaphore kwarg, and add test for concurrency limit sensitivity
* wire up semaphore correctly, thanks to a test
* export read_node
* docstrings
* docstrings
* read_node -> get_node
* Update src/zarr/api/synchronous.py
Co-authored-by: Joe Hamman <[email protected]>
* update docstring
* add function signature tests
* update exception name
* refactor: remove path kwarg, bring back ImplicitGroupMetadata
* prune top-level synchronous API
* more api pruning
* put sync wrappers in sync_group module, move utils to utils
* ensure we always have a root group
* docs
* fix group.create_hierarchy to properly prefix keys with the name of the group
* docstrings
* docstrings
* docstring examples
---------
Co-authored-by: Joe Hamman <[email protected]>1 parent 8b59a38 commit 8d2fb47
File tree
14 files changed
+1883
-96
lines changed- changes
- docs
- user-guide
- src/zarr
- api
- core
- storage
- tests
- test_store
14 files changed
+1883
-96
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
122 | 144 | | |
123 | 145 | | |
124 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
78 | 103 | | |
79 | 104 | | |
80 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| |||
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
0 commit comments