projects
/
hooke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
36519f1
)
Save nicely scaled WLC parameters to the fit dict in polymer_fit.py.
author
W. Trevor King
<wking@drexel.edu>
Sun, 22 Aug 2010 06:18:52 +0000
(
02:18
-0400)
committer
W. Trevor King
<wking@drexel.edu>
Sun, 22 Aug 2010 06:18:52 +0000
(
02:18
-0400)
hooke/plugin/polymer_fit.py
patch
|
blob
|
history
diff --git
a/hooke/plugin/polymer_fit.py
b/hooke/plugin/polymer_fit.py
index 0f4c08cc1e64510fba32674320b9f08a1b9a97e1..c3d715cac554771684db2673ecc8a4cc9054f52d 100644
(file)
--- 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]
p = info['persistence length (m)']
else:
p = params[1]
+ info['persistence length (m)'] = p
L = params[0]
L = params[0]
+ info['contour length (m)'] = L
T = info['temperature (K)']
fit_info = queue.get(block=False)
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)
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):
class PolymerFitPeaksCommand (ColumnAccessCommand):