From: devicerandom Date: Thu, 26 Feb 2009 20:45:18 +0000 (+0000) Subject: (flatfilts.py) seedouble config variables was unused; fixed X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=142343391af6bb41b3c6576af96566f4b8d6cda1;p=hooke.git (flatfilts.py) seedouble config variables was unused; fixed --- 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