From 1a0f4d66f18dd048105d2bafee92142114cddc1e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 3 Jun 2010 10:01:02 -0400 Subject: [PATCH] Oops, forgot to convert 'z piezo gain' to a float in the picoforce driver --- hooke/driver/picoforce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooke/driver/picoforce.py b/hooke/driver/picoforce.py index 64d349f..c1139d6 100644 --- a/hooke/driver/picoforce.py +++ b/hooke/driver/picoforce.py @@ -293,7 +293,7 @@ class PicoForceDriver (Driver): const_re = re.compile('C \[([:\w\s]*)\] ([.0-9]*)') match = const_re.match(z_piezo_info['@Z magnify']) assert match.group(1) == '4:Z scale', match.group(1) - ret['z piezo gain'] = match.group(2) + ret['z piezo gain'] = float(match.group(2)) match = volt_re.match(z_piezo_info['@4:Z scale']) assert match.group(1) == 'ZSensorSens', match.group(1) -- 2.26.2