From a0df1cb78a935cb97506fb0a5bfb13ceb18015d4 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 7 Aug 2010 11:31:18 -0400 Subject: [PATCH] Fix nm -> m conversion bug in WTKDriver's deflection scaling. --- hooke/driver/wtk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooke/driver/wtk.py b/hooke/driver/wtk.py index 363096b..2b536fa 100644 --- a/hooke/driver/wtk.py +++ b/hooke/driver/wtk.py @@ -134,7 +134,7 @@ class WTKDriver (Driver): ret['raw spring constant'] = calibcant_info ret['spring constant (N/m)'] = calibcant_info['Cantilever k (N/m)'] ret['deflection sensitivity (m/V)'] = \ - 1.0/numpy.sqrt(calibcant_info['photoSensitivity**2 (V/nm)**2']) + 1.0/numpy.sqrt(calibcant_info['photoSensitivity**2 (V/nm)**2']) * 1e-9 # (32768 bits = 2**15 bits = 10 Volts) ret['deflection sensitivity (V/bit)'] = 1.0/3276.8 -- 2.26.2