Commit b5239b4
support zarrv3 (#985)
* changed pyproject to zarr>=3
* adjust dependencies
* wip
* more fixes
* update ome-zarr dep
* Add zarr v3 formats
* refactoring formats
* wip replace parse_url() with _open_zarr_store()
* update way of writing transforms, update typehints
* attempt fix consolidated metadata, fix channel names write
* fix partial read tests
* fix path
* access name in group directly
* fix read in consolidated metadata
* initial ugly fix groups and consolidated metadata when deleting
* fix reading back table
* open group without using consolidated metadata when writing
* revert adding labels
* fix read / write issues with consolidated metadata
* use_consolidated False when writing transforms
* add ome_format arg
* check valid element formats in container format
* uncomment code arrayNotFoundError
* remove future annotations import
* update workflow mac version
* drop python 3.10
version is not supported by zarr v3.0.8
* change target python version and readthedocs python version
* minor updates
* update Self import
* fix ome errors
* add windows workflow
* prevent consolidation labels group when deleting element
* add shapes test
* fix shape conversion
* update dask dependency because of zarr v3
* fix multipoly
* fix invalid read name test
* use UPath
* fix paths
* resolve paths
* refactor overwrite transformations
* refactor
* further refactor, add docstrings
* refactor io_raster
* several refactors io
* war on warnings
* checks backward compatibility
* correct test
* further reduce warnings
* remove log with no useful info
* remove log as it is stated in doc string
* move log to info in docstring
* remove deprecated warning
* get rid of categorical and str casting warnings
* below 1000 warnings
* further reduction of warnings
* remove deprecated code
* correct location for storing transforms
* consistent naming
* update according to ome-zarr-py
* correct docstring
* update docstring
* remove todo
* remove unassigned function call
* refactor new _open_zarr_store to _resolve_zarr_store
* silence zarr parquet warnings
* change overwriting warning, silence in tests
* silence overwriting warnings
* silence chunk warning
* remove argument from docstring, update typehint
* update typehint
* small fixes
* fail if not root does not exist
* write out function name
* small fixes
* initial replacement parse_url
* alter docstring
* adjust argument docstring
* remove overwrite warnings
* fix test
* replace parse_url
* change version
* remove type hints from docstrings
* refactor to one function
* change typehint
* remove typehints from docstring
* remove type hint return in docstring
* remove comment
* ensure comment added back
* fix channel metadata
* get rid of TableValidateMixin
* code fixes
* fix
* remove format without effect
* remove unnecessary catch warnings
* add todo
* fixes
* remove unnecessary .get('ome')
* add clarifying comment
* wip tests readwrite across formats
* return None instead of AnnData
* remove TODO
* remove invalid characters from test
* remove unused fixture and commented code
* almost completed extending readwrite tests to all container versions
* add OSError
* partial fix writing empty spatialdata
* fix type
* fix overwrite when no zarr store
* fix write element to empty directory location
* correct no zarr store write test
* remove unnecessary code
* fix write_element
* delete group isntead of .zattrs
* remove parse_url
* removed logger.ingo() and most of remaining warnings from tests
* addressing review comments
* addressed consolidate metadata comment
* make full coverage of _validate_can_safely_write_to_path() easier to understand
* restore partial read/write tests
* minor changes in test_partial_read(); code review finished
* support ome-zarr-py master
* fix docs
* ensure multiscales written correctly
* refactor read_zarr (#982)
* refactor read_zarr
* remove unneccesary checks
* Refactor zarrv3 (#986)
* refactor read_zarr
* remove unneccesary checks
* emit warning with old spatialdata storage version detected
* simplify code for writing (code review changes)
* finished addressing review
---------
Co-authored-by: Luca Marconato <[email protected]>1 parent 18eb623 commit b5239b4
File tree
54 files changed
+2351
-1498
lines changed- .github/workflows
- docs/api
- src/spatialdata
- _core
- operations
- query
- _io
- dataloader
- models
- transformations/ngff
- tests
- core
- operations
- query
- io
- models
- transformations
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
54 files changed
+2351
-1498
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
100 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
101 | 109 | | |
102 | 110 | | |
103 | 111 | | |
| |||
131 | 139 | | |
132 | 140 | | |
133 | 141 | | |
134 | | - | |
| 142 | + | |
135 | 143 | | |
136 | 144 | | |
137 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 43 | + | |
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
| 71 | + | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
252 | 251 | | |
253 | 252 | | |
254 | 253 | | |
255 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
0 commit comments