From 167afe3e89f898bb77a2307b90f01268bf171b2c Mon Sep 17 00:00:00 2001 From: brokkoli71 Date: Thu, 23 Jan 2025 15:07:53 +0100 Subject: [PATCH] deterministic memory store --- src/zarr/core/buffer/cpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zarr/core/buffer/cpu.py b/src/zarr/core/buffer/cpu.py index 5019075496..8aff2e5cfc 100644 --- a/src/zarr/core/buffer/cpu.py +++ b/src/zarr/core/buffer/cpu.py @@ -154,7 +154,7 @@ def create( order: Literal["C", "F"] = "C", fill_value: Any | None = None, ) -> Self: - ret = cls(np.empty(shape=tuple(shape), dtype=dtype, order=order)) + ret = cls(np.zeros(shape=tuple(shape), dtype=dtype, order=order)) if fill_value is not None: ret.fill(fill_value) return ret