(flatfilts.py) seedouble config variables was unused; fixed
authordevicerandom <devnull@localhost>
Thu, 26 Feb 2009 20:45:18 +0000 (20:45 +0000)
committerdevicerandom <devnull@localhost>
Thu, 26 Feb 2009 20:45:18 +0000 (20:45 +0000)
flatfilts.py
libhooke.py

index f7e729ed935e98dfee72d961d2177773750438f3..0cb70cec6651890656d1ae3d93798d559d9bafa7 100755 (executable)
@@ -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)):
index 25ee935ab3652f44c585906fed491344aabbaff0..8989822895e98ceb1e2ff124991ffddc55cebc70 100755 (executable)
@@ -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