mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-09 17:15:01 +08:00
Fix import
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user