@@ -602,49 +602,6 @@ def test_workflow_bounding_box(
602602 assert "encoding-version" in table_group .attrs .asdict ().keys ()
603603
604604
605- def test_workflow_bounding_box_with_overlap (
606- tmp_path : Path ,
607- zenodo_zarr : list [str ],
608- caplog : pytest .LogCaptureFixture ,
609- monkeypatch : MonkeyPatch ,
610- ):
611- monkeypatch .setattr (
612- "fractal_tasks_core.tasks.cellpose_segmentation.cellpose.core.use_gpu" ,
613- patched_cellpose_core_use_gpu ,
614- )
615-
616- monkeypatch .setattr (
617- "fractal_tasks_core.tasks.cellpose_segmentation.segment_ROI" ,
618- patched_segment_ROI_overlapping_organoids ,
619- )
620-
621- # Setup caplog fixture, see
622- # https://docs.pytest.org/en/stable/how-to/logging.html#caplog-fixture
623- caplog .set_level (logging .WARNING )
624-
625- # Use pre-made 3D zarr
626- zarr_dir = tmp_path / "tmp_out/"
627- zarr_urls = prepare_3D_zarr (str (zarr_dir ), zenodo_zarr )
628- debug (zarr_dir )
629- debug (zarr_urls )
630-
631- # Per-FOV labeling
632- channel = CellposeChannel1InputModel (
633- wavelength_id = "A01_C01" , normalize = CellposeCustomNormalizer ()
634- )
635- for zarr_url in zarr_urls :
636- cellpose_segmentation (
637- zarr_url = zarr_url ,
638- channel = channel ,
639- level = 3 ,
640- relabeling = True ,
641- diameter_level0 = 80.0 ,
642- output_ROI_table = "bbox_table" ,
643- )
644- debug (caplog .text )
645- assert "bounding-box pairs overlap" in caplog .text
646-
647-
648605def test_cellpose_within_masked_bb_with_overlap (
649606 tmp_path : Path ,
650607 zenodo_zarr : list [str ],
0 commit comments