From: W. Trevor King Date: Sun, 22 Aug 2010 06:18:52 +0000 (-0400) Subject: Save nicely scaled WLC parameters to the fit dict in polymer_fit.py. X-Git-Url: http://git.tremily.us/?p=hooke.git;a=commitdiff_plain;h=cc35f246b8697f10f12af54fe5e3a00434345dd0 Save nicely scaled WLC parameters to the fit dict in polymer_fit.py. --- 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):