Skip to content

Commit 88360ad

Browse files
authored
Shard zarr stores (#47)
1 parent 5c9a2a1 commit 88360ad

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ urls.Documentation = "https://todo.com" # TODO
1919
urls.Source = "https://github.com/url/to/repo.git"
2020
urls.Home-page = "https://github.com/url/to/repo.git"
2121
dependencies = [
22-
"anndata>=0.12.2",
22+
"anndata>=0.12.5",
2323
"dask",
2424
"scanpy",
2525
"zarr>3",

src/fancypackage/io/_zarr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
import anndata as ad
77
from anndata import AnnData
88

9+
ad.settings.zarr_write_format = 3
10+
ad.settings.auto_shard_zarr_v3 = True
11+
912

1013
def write_zarr(adata: AnnData, path: Path) -> None:
1114
"""Write AnnData to hierarchical Zarr array zip store.

0 commit comments

Comments
 (0)