From bc85a6886531f9a0106b18bb181e1f2000dacf64 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 29 Jul 2011 10:02:11 -0400 Subject: [PATCH] axis_channel_config -> config['channel'] in surface.py. --- pypiezo/surface.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, -- 2.26.2