Skip to content

Commit 167afe3

Browse files
committed
deterministic memory store
1 parent 5969018 commit 167afe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/core/buffer/cpu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def create(
154154
order: Literal["C", "F"] = "C",
155155
fill_value: Any | None = None,
156156
) -> Self:
157-
ret = cls(np.empty(shape=tuple(shape), dtype=dtype, order=order))
157+
ret = cls(np.zeros(shape=tuple(shape), dtype=dtype, order=order))
158158
if fill_value is not None:
159159
ret.fill(fill_value)
160160
return ret

0 commit comments

Comments
 (0)