From: W. Trevor King Date: Fri, 29 Jul 2011 14:02:11 +0000 (-0400) Subject: axis_channel_config -> config['channel'] in surface.py. X-Git-Tag: 0.6~40 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bc85a6886531f9a0106b18bb181e1f2000dacf64;p=pypiezo.git axis_channel_config -> config['channel'] in surface.py. --- diff --git a/pypiezo/surface.py b/pypiezo/surface.py index 7da39d4..5fe6fe2 100644 --- a/pypiezo/surface.py +++ b/pypiezo/surface.py @@ -79,12 +79,12 @@ 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.axis_channel_config, - output_axis.axis_config['minimum']) + output_axis.config, + output_axis.config['minimum']) if max_position is None: max_position = _base.convert_volts_to_bits( - output_axis.axis_channel_config, - output_axis.axis_config['maximum']) + output_axis.config, + output_axis.config['maximum']) return (min_position, max_position) def get_surface_position_data(piezo, axis_name, max_deflection, steps=2000,