Fix import

This commit is contained in:
Tony S Yu
2012-04-15 23:15:18 -04:00
parent cdb61f82ff
commit b9b9cd5c65
+2 -2
View File
@@ -1,6 +1,6 @@
import numpy as np
from skimage import feature
from skimage.feature import peak
def test_noisy_peaks():
@@ -11,7 +11,7 @@ def test_noisy_peaks():
for r, c in peak_locations:
image[r, c] = 1
peaks_detected = feature.peak_local_max(image, min_distance=5)
peaks_detected = peak.peak_local_max(image, min_distance=5)
assert len(peaks_detected) == len(peak_locations)
for loc in peaks_detected: