Skip to content

Commit

Permalink
Merge pull request #17 from PingjunChen/ajinkya-kulkarni-patch-2
Browse files Browse the repository at this point in the history
Updated `ValueError`
  • Loading branch information
PingjunChen committed Apr 2, 2023
2 parents 7723d0b + 2dd636f commit 5c7dee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/patch/test_prop.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ def test_patch_bk_ratio():

bk_ratio = patch.patch_bk_ratio(img, bk_thresh=0.80)
if bk_ratio > 1 or bk_ratio < 0:
raise AssertionError("Ratio not in the range.")
raise ValueError("Background ratio not in the expected range of 0 to 1.")

0 comments on commit 5c7dee0

Please sign in to comment.