From 142343391af6bb41b3c6576af96566f4b8d6cda1 Mon Sep 17 00:00:00 2001 From: devicerandom Date: Thu, 26 Feb 2009 20:45:18 +0000 Subject: [PATCH] (flatfilts.py) seedouble config variables was unused; fixed --- flatfilts.py | 2 +- libhooke.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flatfilts.py b/flatfilts.py index f7e729e..0cb70ce 100755 --- a/flatfilts.py +++ b/flatfilts.py @@ -170,7 +170,7 @@ class flatfiltsCommands: #do the dirty convolution-peak finding stuff noise_level=lps.noise_absdev(convoluted[cut_index:], self.convfilt_config['positive'], self.convfilt_config['maxcut'], self.convfilt_config['stable']) above=lps.abovenoise(convoluted,noise_level,cut_index,abs_devs) - peak_location,peak_size=lps.find_peaks(above) + peak_location,peak_size=lps.find_peaks(above,seedouble=self.convfilt_config['seedouble']) #take the maximum for i in range(len(peak_location)): diff --git a/libhooke.py b/libhooke.py index 25ee935..8989822 100755 --- a/libhooke.py +++ b/libhooke.py @@ -271,6 +271,7 @@ class ClickedPoint: corresponds to the clicked point. ''' + #FIXME: a general algorithm using min() is needed! best_index=0 best_dist=10**9 #should be more than enough given the scale -- 2.26.2