Skip to content

Commit

Permalink
Fix mask
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 21, 2023
1 parent d3afa95 commit 526aba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2cwsgiutils/acceptance/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def check_image(
assert ((0 < mask) & (mask < 255)).sum() == 0, "Mask should be only black and white image"

# Convert to boolean
mask = mask == 0
mask = mask != 0

assert (
mask.shape[0] == image_to_check.shape[0] and mask.shape[1] == image_to_check.shape[1]
Expand Down

0 comments on commit 526aba7

Please sign in to comment.