Skip to content

Commit

Permalink
verification on default annotation parameter updated
Browse files Browse the repository at this point in the history
  • Loading branch information
tand826 committed Feb 1, 2022
1 parent 3c7196f commit 3626181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wsiprocess/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ def sizes(
raise SizeError("Patches have to be larger than the overlap size.")
if patch_width < 0 or patch_height < 0:
raise SizeError("Patches has to be larger than 1.")
if dot_bbox_width and dot_bbox_width > patch_width:
if dot_bbox_width is not False and dot_bbox_width > patch_width:
raise SizeError("Translated bbox is larger than patch width.")
if dot_bbox_height and dot_bbox_height > patch_height:
if dot_bbox_height is not False and dot_bbox_height > patch_height:
raise SizeError("Translated bbox is larger than patch height.")

def on_params(self, on_annotation, on_foreground):
Expand Down

0 comments on commit 3626181

Please sign in to comment.