Skip to content

Commit

Permalink
Bug fix: remove unnecessary __get__ in test_slic
Browse files Browse the repository at this point in the history
  • Loading branch information
jni committed Jul 2, 2013
1 parent e9aa78b commit 57cc86d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skimage/segmentation/tests/test_slic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 57cc86d

Please sign in to comment.