You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/zarr-v3.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# zarr-v3 Guide/Roadmap
2
2
3
-
`anndata` now uses the much improved {mod}`zarr` v3 package and also allows writing of datasets in the v3 format via {attr}`anndata.settings.zarr_write_format`, with the exception of structured arrays.
3
+
`anndata` now uses the much improved {mod}`zarr` v3 package and also allows writing of datasets in the v3 format via {attr}`anndata.settings.zarr_write_format` via {func}`anndata.io.write_zarr` or {meth}`anndata.AnnData.write_zarr`, with the exception of structured arrays.
4
4
Users should notice a significant performance improvement, especially for cloud data, but also likely for local data as well.
5
5
Here is a quick guide on some of our learnings so far:
6
6
@@ -48,7 +48,7 @@ import anndata as ad
48
48
from collections.abc import Mapping
49
49
from typing import Any
50
50
51
-
ad.settings.zarr_write_format =3#Absolutely crucial! Sharding is only for the v3 file format!
51
+
g = zarr.open_group(orig_path, mode="a", use_consolidated=False, zarr_version=3)#zarr_version 3 is default but note that sharding only works with v3!
0 commit comments