Skip to content

Commit e61b367

Browse files
committed
fix: dont override dataset kwargs in loop
1 parent a7ba562 commit e61b367

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/anndata/_io/specs/methods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,9 +804,9 @@ def write_sparse_compressed(
804804
else:
805805
with zarr_v3_sharding(
806806
dataset_kwargs, format=f.metadata.zarr_format
807-
) as dataset_kwargs:
807+
) as dataset_kwargs_local:
808808
arr = g.create_array(
809-
attr_name, shape=attr.shape, dtype=dtype, **dataset_kwargs
809+
attr_name, shape=attr.shape, dtype=dtype, **dataset_kwargs_local
810810
)
811811
# see https://github.com/zarr-developers/zarr-python/discussions/2712
812812
arr[...] = attr[...]

0 commit comments

Comments
 (0)