@@ -49,7 +49,7 @@ def test_functionality(remote_sample: Callable) -> None:
4949 device = select_device (on_gpu = env_detection .has_gpu ()),
5050 )
5151 output = model .postproc (output [0 ])
52- xs , ys , _ , _ = NucleusDetector ._centroid_maps_to_detection_arrays (output , None )
52+ xs , ys , _ , _ = NucleusDetector ._extract_detection_arrays_from_block (output , None )
5353
5454 np .testing .assert_array_equal (xs , np .array ([8 ]))
5555 np .testing .assert_array_equal (ys , np .array ([7 ]))
@@ -66,7 +66,7 @@ def test_functionality(remote_sample: Callable) -> None:
6666 }
6767 }
6868 output = model .postproc (output [0 ], block_info = block_info )
69- xs , ys , _ , _ = NucleusDetector ._centroid_maps_to_detection_arrays (output , None )
69+ xs , ys , _ , _ = NucleusDetector ._extract_detection_arrays_from_block (output , None )
7070 np .testing .assert_array_equal (xs , np .array ([7 ]))
7171 np .testing .assert_array_equal (ys , np .array ([8 ]))
7272
@@ -85,6 +85,6 @@ def test_functionality(remote_sample: Callable) -> None:
8585 }
8686 }
8787 output = model .postproc (output [0 ], block_info = block_info )
88- xs , ys , _ , _ = NucleusDetector ._centroid_maps_to_detection_arrays (output , None )
88+ xs , ys , _ , _ = NucleusDetector ._extract_detection_arrays_from_block (output , None )
8989 np .testing .assert_array_equal (xs , np .array ([]))
9090 np .testing .assert_array_equal (ys , np .array ([]))
0 commit comments