From 9d6bd2393b1c63f567458e60031d8402493aad3b Mon Sep 17 00:00:00 2001 From: devicerandom Date: Mon, 27 Oct 2008 17:48:14 +0000 Subject: [PATCH] (autopeak.py) fixed stupid error when pl is fixed --- autopeak.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/autopeak.py b/autopeak.py index 795189d..7961313 100644 --- a/autopeak.py +++ b/autopeak.py @@ -115,10 +115,7 @@ class autopeakCommands: defplot=flatten(defplot, self.current, customvalue=1) #Flatten curve before feeding it to has_peaks peak_location,peak_size=self.has_peaks(defplot, self.convfilt_config['mindeviation']) return peak_location, peak_size - - - - + #default fit etc. variables pl_value=None T=self.config['temperature'] @@ -234,7 +231,7 @@ class autopeakCommands: #check fitted data and, if right, add peak to the measurement #FIXME: code duplication if len(params)==1: #if we did choose 1-value fit - p_lengths.append(params[1]*(1.0e+9)) + p_lengths.append(pl_value) c_lengths.append(params[0]*(1.0e+9)) forces.append(abs(y-avg)*(1.0e+12)) slopes.append(slope) -- 2.26.2