Skip to content
Open
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
7 changes: 4 additions & 3 deletions cellpose/contrib/distributed_segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def numpy_array_to_zarr(write_path, array, chunks):
"""

zarr_array = zarr.open(
write_path,
store=write_path,
mode='w',
shape=array.shape,
chunks=chunks,
Expand Down Expand Up @@ -729,7 +729,8 @@ class in this module. If you are running on the Janelia LSF cluster, see

temp_zarr_path = temporary_directory + '/segmentation_unstitched.zarr'
temp_zarr = zarr.open(
temp_zarr_path, 'w',
store=temp_zarr_path,
mode='w',
shape=input_zarr.shape,
chunks=blocksize,
dtype=np.uint32,
Expand Down Expand Up @@ -781,7 +782,7 @@ class in this module. If you are running on the Janelia LSF cluster, see
)
dask.array.to_zarr(relabeled, write_path, overwrite=True)
merged_boxes = merge_all_boxes(boxes, new_labeling[box_ids])
return zarr.open(write_path, mode='r'), merged_boxes
return zarr.open(store=write_path, mode='r'), merged_boxes


#----------------------- component functions ---------------------------------#
Expand Down