Save nicely scaled WLC parameters to the fit dict in polymer_fit.py.
authorW. Trevor King <wking@drexel.edu>
Sun, 22 Aug 2010 06:18:52 +0000 (02:18 -0400)
committerW. Trevor King <wking@drexel.edu>
Sun, 22 Aug 2010 06:18:52 +0000 (02:18 -0400)
hooke/plugin/polymer_fit.py

index 0f4c08c..c3d715c 100644 (file)
@@ -1052,12 +1052,16 @@ Indicies of points bounding the selected data.
             p = info['persistence length (m)']
         else:
             p = params[1]
+            info['persistence length (m)'] = p
         L = params[0]
+        info['contour length (m)'] = L
         T = info['temperature (K)']
         fit_info = queue.get(block=False)
+        info['fit'] = fit_info
+        info.pop('x data (m)')
         f_data = numpy.ones(dist_data.shape, dtype=dist_data.dtype) * numpy.nan
         f_data[start:stop] = WLC_fn(dist_data[start:stop], T=T, L=L, p=p)
-        return [f_data, fit_info]
+        return [f_data, info]
 
 
 class PolymerFitPeaksCommand (ColumnAccessCommand):