Skip to content

Commit

Permalink
Merge pull request #199 from scjjb/patch-4
Browse files Browse the repository at this point in the history
Update WholeSlideImage.py - fix bug where minimum number of patches is 2 instead of 1.
  • Loading branch information
fedshyvana authored Sep 30, 2023
2 parents 9482cbc + 1425417 commit 26e0b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsi_core/WholeSlideImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def process_contour(self, cont, contour_holes, patch_level, save_path, patch_siz

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

if len(results)>1:
if len(results)>0:
asset_dict = {'coords' : results}

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

0 comments on commit 26e0b6c

Please sign in to comment.