mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-23 13:10:18 +08:00
FIX: changed xrange to range so Python 3 works.
This commit is contained in:
@@ -107,7 +107,7 @@ def test_num_peaks():
|
||||
|
||||
lena_corners = corner_harris(data.lena())
|
||||
|
||||
for i in xrange(20):
|
||||
for i in range(20):
|
||||
n = np.random.random_integers(20)
|
||||
results = peak_local_max(lena_corners, num_peaks=n)
|
||||
assert (results.shape[0] == n)
|
||||
|
||||
Reference in New Issue
Block a user