From: W. Trevor King Date: Thu, 3 Jun 2010 14:01:02 +0000 (-0400) Subject: Oops, forgot to convert 'z piezo gain' to a float in the picoforce driver X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1a0f4d66f18dd048105d2bafee92142114cddc1e;p=hooke.git Oops, forgot to convert 'z piezo gain' to a float in the picoforce driver --- 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)