Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions src/zarr/abc/codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,7 @@ async def decode_partial(
Iterable[NDBuffer | None]
"""
return await concurrent_map(
[
(byte_getter, selection, chunk_spec)
for byte_getter, selection, chunk_spec in batch_info
],
list(batch_info),
self._decode_partial_single,
config.get("async.concurrency"),
)
Expand Down Expand Up @@ -227,10 +224,7 @@ async def encode_partial(
The chunk spec contains information about the chunk.
"""
await concurrent_map(
[
(byte_setter, chunk_array, selection, chunk_spec)
for byte_setter, chunk_array, selection, chunk_spec in batch_info
],
list(batch_info),
self._encode_partial_single,
config.get("async.concurrency"),
)
Expand Down Expand Up @@ -402,7 +396,7 @@ async def batching_helper(
batch_info: Iterable[tuple[CodecInput | None, ArraySpec]],
) -> list[CodecOutput | None]:
return await concurrent_map(
[(chunk_array, chunk_spec) for chunk_array, chunk_spec in batch_info],
list(batch_info),
noop_for_none(func),
config.get("async.concurrency"),
)
Expand Down