Skip to content

Commit 6abd5b5

Browse files
committed
iterate over shards instead of chunks in second branch
1 parent b8dbf56 commit 6abd5b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/core/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4421,7 +4421,7 @@ async def _copy_arraylike_region(chunk_coords: slice, _data: NDArrayLike) -> Non
44214421

44224422
# Stream data from the source array to the new array
44234423
await concurrent_map(
4424-
[(region, data) for region in result._iter_chunk_regions()],
4424+
[(region, data) for region in result._iter_shard_regions()],
44254425
_copy_arraylike_region,
44264426
zarr.core.config.config.get("async.concurrency"),
44274427
)

0 commit comments

Comments
 (0)