From 129d24721d13a7b5e38aecccbdf7d50d65d61c83 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Wed, 18 Sep 2024 14:42:30 -0500 Subject: [PATCH] Fixed codec for v2 data with no fill value xref https://github.com/zarr-developers/zarr-python/pull/2179/files#r1765600769 --- src/zarr/core/array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zarr/core/array.py b/src/zarr/core/array.py index 3a455b239f..2cf6d69404 100644 --- a/src/zarr/core/array.py +++ b/src/zarr/core/array.py @@ -313,7 +313,7 @@ async def _create_v2( chunks=chunks, order=order, dimension_separator=dimension_separator, - fill_value=fill_value, + fill_value=0 if fill_value is None else fill_value, compressor=compressor, filters=filters, attributes=attributes,