From cf53ff16be9e669918696d12f4ae3354d3d7e045 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 6 Aug 2010 08:43:16 -0400 Subject: [PATCH] Use cantilever adjusted extension in polymer fitting. --- hooke/plugin/polymer_fit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hooke/plugin/polymer_fit.py b/hooke/plugin/polymer_fit.py index d5b43db..9ed2faa 100644 --- a/hooke/plugin/polymer_fit.py +++ b/hooke/plugin/polymer_fit.py @@ -973,7 +973,8 @@ Indicies of points bounding the selected data. new.info = copy.deepcopy(data.info) new[:,:-1] = data new.info['columns'].append('%s tension (N)' % model) # TODO: WLC fit for each peak, etc. - z_data = data[:,data.info['columns'].index('surface distance (m)')] + z_data = data[:,data.info['columns'].index( + 'cantilever adjusted extension (m)')] d_data = data[:,data.info['columns'].index('deflection (N)')] start,stop = params['bounds'] tension_data,ps = self.fit_polymer_model( -- 2.26.2