From 541b3b4e5dd3668a5dd48d60893951c515fb13ae Mon Sep 17 00:00:00 2001 From: Mark Strefford Date: Mon, 18 Apr 2016 05:57:34 +0100 Subject: [PATCH] Updated link to Scipy ndimage iterate_structure page --- dejavu/fingerprint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dejavu/fingerprint.py b/dejavu/fingerprint.py index 4db321b..cf7c79c 100755 --- a/dejavu/fingerprint.py +++ b/dejavu/fingerprint.py @@ -90,7 +90,7 @@ def fingerprint(channel_samples, Fs=DEFAULT_FS, def get_2D_peaks(arr2D, plot=False, amp_min=DEFAULT_AMP_MIN): - # http://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.morphology.iterate_structure.html#scipy.ndimage.morphology.iterate_structure + # http://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.iterate_structure.html#scipy.ndimage.iterate_structure struct = generate_binary_structure(2, 1) neighborhood = iterate_structure(struct, PEAK_NEIGHBORHOOD_SIZE) @@ -142,7 +142,7 @@ def generate_hashes(peaks, fan_value=DEFAULT_FAN_VALUE): for i in range(len(peaks)): for j in range(1, fan_value): if (i + j) < len(peaks): - + freq1 = peaks[i][IDX_FREQ_I] freq2 = peaks[i + j][IDX_FREQ_I] t1 = peaks[i][IDX_TIME_J]