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