Skip to content

Commit

Permalink
Add rtol usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraporta committed Nov 21, 2024
1 parent dd0761c commit 7cdcc56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def test_blob_detection_on_derotated_stack(
if not np.allclose(blob[0][:2][::-1], center_1, atol=atol):
errors += 1
if len(blob) > 1 and not np.allclose(
blob[-1][:2][::-1], center_2, atol=atol
blob[-1][:2][::-1], center_2, atol=atol, rtol=0
):
errors += 1

Expand Down
2 changes: 1 addition & 1 deletion tests/test_regression/assertions.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def compare_images(
try:
# Check if the current image is close to the target image
# within the tolerance level
assert np.allclose(current_image, target_image, atol=atol)
assert np.allclose(current_image, target_image, atol=atol, rtol=0)

except AssertionError:
# If the current image is not close to the target image
Expand Down

0 comments on commit 7cdcc56

Please sign in to comment.