From cc35f246b8697f10f12af54fe5e3a00434345dd0 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 22 Aug 2010 02:18:52 -0400 Subject: [PATCH] Save nicely scaled WLC parameters to the fit dict in polymer_fit.py. --- hooke/plugin/polymer_fit.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hooke/plugin/polymer_fit.py b/hooke/plugin/polymer_fit.py index 0f4c08c..c3d715c 100644 --- a/hooke/plugin/polymer_fit.py +++ b/hooke/plugin/polymer_fit.py @@ -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): -- 2.26.2