Skip to content

Commit f355d1f

Browse files
monai-botwyli
andauthored
auto updates (#6561)
Signed-off-by: monai-bot <[email protected]> Signed-off-by: monai-bot <[email protected]> Co-authored-by: Wenqi Li <[email protected]>
1 parent f98c74f commit f355d1f

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

monai/inferers/splitter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def __call__(self, inputs: Any) -> Iterable[tuple[torch.Tensor, Sequence[int]]]:
282282

283283
# Splitting
284284
for location in iter_patch_position(spatial_shape, patch_size, offset, overlap, False):
285-
patch = self._get_patch(inputs, location, patch_size) # type: ignore
285+
patch = self._get_patch(inputs, location, patch_size)
286286
patch = convert_to_tensor(patch, device=self.device)
287287
# correct the location with respect to original inputs (remove starting pads)
288288
if is_start_padded:

tests/test_patch_inferer.py

-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@
127127
TENSOR_4x4,
128128
]
129129

130-
131130
# non-divisible patch_size leading to larger image (without matching spatial shape)
132131
TEST_CASE_11_PADDING = [
133132
TENSOR_4x4,

tests/test_wsi_sliding_window_splitter.py

-2
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,12 @@
3535
WSI_READER_STR = "OpenSlide"
3636
WSI_READER_CLASS = OpenSlideWSIReader
3737

38-
3938
WSI_GENERIC_TIFF_KEY = "wsi_generic_tiff"
4039
WSI_GENERIC_TIFF_PATH = os.path.join(os.path.dirname(__file__), "testing_data", f"temp_{WSI_GENERIC_TIFF_KEY}.tiff")
4140

4241
HEIGHT = 32914
4342
WIDTH = 46000
4443

45-
4644
# ----------------------------------------------------------------------------
4745
# WSI test cases
4846
# ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)