From: W. Trevor King Date: Fri, 29 Jul 2011 14:06:03 +0000 (-0400) Subject: Oops, forgot the ['channel']. X-Git-Tag: 0.6~39 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=60fdbf581745f3d69bf506adad222949b3eba40c;p=pypiezo.git Oops, forgot the ['channel']. --- 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)