Skip to content

Commit 26e0b6c

Browse files
authored
Merge pull request #199 from scjjb/patch-4
Update WholeSlideImage.py - fix bug where minimum number of patches is 2 instead of 1.
2 parents 9482cbc + 1425417 commit 26e0b6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wsi_core/WholeSlideImage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def process_contour(self, cont, contour_holes, patch_level, save_path, patch_siz
460460

461461
print('Extracted {} coordinates'.format(len(results)))
462462

463-
if len(results)>1:
463+
if len(results)>0:
464464
asset_dict = {'coords' : results}
465465

466466
attr = {'patch_size' : patch_size, # To be considered...

0 commit comments

Comments
 (0)