From cd01bad72134721d417591cc8cc5eb548dfabd4f Mon Sep 17 00:00:00 2001 From: radioxoma Date: Sat, 11 Jan 2014 02:00:03 +0300 Subject: [PATCH] fix tests --- skimage/filter/tests/test_thresholding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/filter/tests/test_thresholding.py b/skimage/filter/tests/test_thresholding.py index 7d42fbcf..f0a68f7d 100644 --- a/skimage/filter/tests/test_thresholding.py +++ b/skimage/filter/tests/test_thresholding.py @@ -165,13 +165,13 @@ def test_isodata_moon_image(): def test_isodata_moon_image_negative_int(): - moon = data.moon().astype(np.int32) + moon = skimage.img_as_ubyte(data.moon()).astype(np.int32) moon -= 100 assert threshold_isodata(moon) == -13 def test_isodata_moon_image_negative_float(): - moon = data.moon().astype(np.float64) + moon = skimage.img_as_ubyte(data.moon()).astype(np.float64) moon -= 100 assert -13 < threshold_isodata(moon) < -12