Skip to content

Commit

Permalink
deterministic memory store
Browse files Browse the repository at this point in the history
  • Loading branch information
brokkoli71 committed Jan 23, 2025
1 parent 5969018 commit 167afe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zarr/core/buffer/cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 167afe3

Please sign in to comment.