mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-30 13:40:44 +08:00
FIX: changed xrange to range so Python 3 works.
This commit is contained in:
1 parent
920e41398d
commit
042b75d05f
1 file changed
+1
-1
@@ -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