From 60fdbf581745f3d69bf506adad222949b3eba40c Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 29 Jul 2011 10:06:03 -0400 Subject: [PATCH] Oops, forgot the ['channel']. --- pypiezo/surface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pypiezo/surface.py b/pypiezo/surface.py index 5fe6fe2..6461718 100644 --- a/pypiezo/surface.py +++ b/pypiezo/surface.py @@ -79,11 +79,11 @@ def _get_min_max_positions(piezo, axis_name, min_position=None, output_axis = piezo.axis_by_name(axis_name) if min_position is None: min_position = _base.convert_volts_to_bits( - output_axis.config, + output_axis.config['channel'], output_axis.config['minimum']) if max_position is None: max_position = _base.convert_volts_to_bits( - output_axis.config, + output_axis.config['channel'], output_axis.config['maximum']) return (min_position, max_position) -- 2.26.2