Skip to content

Commit 54a6447

Browse files
committed
fix tests
1 parent f14e4cb commit 54a6447

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/models/test_arch_mapde.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_functionality(remote_sample: Callable) -> None:
4949
batch = torch.from_numpy(patch)[None]
5050
output = model.infer_batch(model, batch, device=select_device(on_gpu=ON_GPU))
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[0:2], np.array([242, 192]))
5555
np.testing.assert_array_equal(ys[0:2], np.array([10, 13]))
@@ -73,7 +73,7 @@ def test_functionality(remote_sample: Callable) -> None:
7373
}
7474
}
7575
output = model.postproc(output[0], block_info=block_info)
76-
xs, ys, _, _ = NucleusDetector._centroid_maps_to_detection_arrays(output, None)
76+
xs, ys, _, _ = NucleusDetector._extract_detection_arrays_from_block(output, None)
7777
np.testing.assert_array_equal(xs, np.array([]))
7878
np.testing.assert_array_equal(ys, np.array([]))
7979

tests/models/test_arch_sccnn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)