Skip to content

Commit 8bd0b57

Browse files
committed
simplify path normalization
1 parent 32e06fa commit 8bd0b57

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/zarr/core/group.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3633,7 +3633,7 @@ async def _create_rooted_hierarchy_a(
36333633
)
36343634
raise ValueError(msg)
36353635
else:
3636-
root = roots[0]
3636+
root_key = roots[0]
36373637

36383638
semaphore = asyncio.Semaphore(config.get("async.concurrency"))
36393639

@@ -3643,9 +3643,7 @@ async def _create_rooted_hierarchy_a(
36433643
store=store, path=path, nodes=nodes, semaphore=semaphore, overwrite=overwrite
36443644
)
36453645
}
3646-
# the names of the created nodes will be relative to the store_path instance
3647-
root_relative_to_store_path = _join_paths([path, root])
3648-
return nodes_created[root_relative_to_store_path]
3646+
return nodes_created[_join_paths([path, root_key])]
36493647

36503648

36513649
def _create_rooted_hierarchy(

0 commit comments

Comments
 (0)