From c86c6effe8ead802e01a8fa83aefc7bc945f2662 Mon Sep 17 00:00:00 2001 From: Daniel Wennberg Date: Sat, 2 May 2015 16:52:44 +0200 Subject: [PATCH] Fix tests for #1257 The test of blob_doh() set an unrealistically strict threshold for the accuracy of the estimated blob radius, causing the test to fail with the true floating-point value (previously, the test passed only because sigma was truncated to integer). Increasing the threshold fixes the problem. --- skimage/feature/tests/test_blob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/feature/tests/test_blob.py b/skimage/feature/tests/test_blob.py index a46c442b..5def047c 100644 --- a/skimage/feature/tests/test_blob.py +++ b/skimage/feature/tests/test_blob.py @@ -141,7 +141,7 @@ def test_blob_doh(): radius = lambda x: x[2] s = sorted(blobs, key=radius) - thresh = 3 + thresh = 4 b = s[0] assert abs(b[0] - 400) <= thresh