Skip to content

Commit 4deec1c

Browse files
committed
fix path for zarr.save args
1 parent c12deb7 commit 4deec1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/zarr/api/asynchronous.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,12 +462,13 @@ async def save_group(
462462
raise ValueError("at least one array must be provided")
463463
aws = []
464464
for i, arr in enumerate(args):
465+
_path = f"{path}/arr_{i}" if path is not None else f"arr_{i}"
465466
aws.append(
466467
save_array(
467468
store,
468469
arr,
469470
zarr_format=zarr_format,
470-
path=f"{path}/arr_{i}",
471+
path=_path,
471472
storage_options=storage_options,
472473
)
473474
)

0 commit comments

Comments
 (0)