From 57cc86d7c81565d8f51037ebc178e90bc8981052 Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Tue, 14 May 2013 03:07:09 +1000 Subject: [PATCH] Bug fix: remove unnecessary __get__ in test_slic --- skimage/segmentation/tests/test_slic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/segmentation/tests/test_slic.py b/skimage/segmentation/tests/test_slic.py index 58fda099..1f5f0c42 100644 --- a/skimage/segmentation/tests/test_slic.py +++ b/skimage/segmentation/tests/test_slic.py @@ -12,7 +12,7 @@ def test_color(): img += 0.01 * rnd.normal(size=img.shape) img[img > 1] = 1 img[img < 0] = 0 - seg = slic(img, sigma=0, n_segments=4)[0] + seg = slic(img, sigma=0, n_segments=4) # we expect 4 segments assert_equal(len(np.unique(seg)), 4) @@ -30,7 +30,7 @@ def test_gray(): img += 0.0033 * rnd.normal(size=img.shape) img[img > 1] = 1 img[img < 0] = 0 - seg = slic(img, sigma=0, n_segments=4, ratio=50.0, multichannel=False)[0] + seg = slic(img, sigma=0, n_segments=4, ratio=20.0, multichannel=False) assert_equal(len(np.unique(seg)), 4) assert_array_equal(seg[:10, :10], 0)