Skip to content

Commit a337057

Browse files
committed
minor refactor
1 parent 7f0fe06 commit a337057

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

fractal_tasks_core/cellpose_segmentation.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
convert_ROI_table_to_indices,
4242
)
4343
from fractal_tasks_core.lib_remove_FOV_overlaps import (
44-
get_bbox_overlapping_pair,
44+
get_overlapping_pairs_3D,
4545
)
4646
from fractal_tasks_core.lib_zattrs_utils import extract_zyx_pixel_sizes
4747
from fractal_tasks_core.lib_zattrs_utils import rescale_datasets
@@ -379,11 +379,9 @@ def cellpose_segmentation(
379379

380380
overlap_list = []
381381
for df in bbox_dataframe_list:
382-
overlap_list.append(get_bbox_overlapping_pair(df))
383-
384-
# if len(overlap_list) > 0:
385-
# raise ValueError(f"{overlap_list} "
386-
# f"List of pair of bounding box overlaps")
382+
overlap_list.append(
383+
get_overlapping_pairs_3D(df, full_res_pxl_sizes_zyx)
384+
)
387385

388386
# Compute and store 0-th level to disk
389387
da.array(fov_mask).to_zarr(

0 commit comments

Comments
 (0)