From: devicerandom Date: Mon, 13 Oct 2008 15:38:26 +0000 (+0000) Subject: (fit.py) wlc and autopeak now take the persistent length in nanometers, NOT in meters X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84e6890044406e7f3fc54ba3af5745175a36d635;p=hooke.git (fit.py) wlc and autopeak now take the persistent length in nanometers, NOT in meters --- diff --git a/fit.py b/fit.py index 708c83c..e721497 100755 --- a/fit.py +++ b/fit.py @@ -46,7 +46,10 @@ class fitCommands: clicked_points[1] and [2] are edges of chunk''' #STEP 1: Prepare the vectors to apply the fit. - + + if pl_value is not None: + pl_value=pl_value/(10**9) + #indexes of the selected chunk first_index=min(clicked_points[1].index, clicked_points[2].index) last_index=max(clicked_points[1].index, clicked_points[2].index) @@ -171,8 +174,7 @@ class fitCommands: pl=[value] : Use a fixed persistent length for the fit. If pl is not given, the fit will be a 2-variable fit. DO NOT put spaces between 'pl', '=' and the value. - The value must be in meters. - Scientific notation like 0.35e-9 is fine. + The value must be in nanometers. t=[value] : Use a user-defined temperature. The value must be in kelvins; by default it is 293 K.