Skip to content

Commit c0539ee

Browse files
committed
Open array directly
1 parent d8c6d57 commit c0539ee

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bio2zarr/vcf2zarr/vcz.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -707,12 +707,10 @@ def init_partition_array(self, partition_index, name):
707707
# Overwrite any existing WIP files
708708
wip_path = self.wip_partition_array_path(partition_index, name)
709709
shutil.copytree(src, wip_path, dirs_exist_ok=True)
710-
wip_root = zarr.open(
711-
store=self.wip_partition_path(partition_index),
710+
array = zarr.open_array(
711+
store=wip_path,
712712
mode="a",
713-
**ZARR_FORMAT_KWARGS,
714713
)
715-
array = wip_root[name]
716714
logger.debug(f"Opened empty array {array.name} <{array.dtype}> @ {wip_path}")
717715
return array
718716

0 commit comments

Comments
 (0)