We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c4bc6e commit 438f379Copy full SHA for 438f379
1 file changed
src/zarr/core/codec_pipeline.py
@@ -529,13 +529,12 @@ async def _read_key(
529
):
530
if chunk_array is None:
531
chunk_array_batch.append(None) # type: ignore[unreachable]
532
+ elif not chunk_spec.config.write_empty_chunks and chunk_array.all_equal(
533
+ fill_value_or_default(chunk_spec)
534
+ ):
535
+ chunk_array_batch.append(None)
536
else:
- if not chunk_spec.config.write_empty_chunks and chunk_array.all_equal(
- fill_value_or_default(chunk_spec)
- ):
- chunk_array_batch.append(None)
537
- else:
538
- chunk_array_batch.append(chunk_array)
+ chunk_array_batch.append(chunk_array)
539
540
chunk_bytes_batch = await self.encode_batch(
541
[
0 commit comments