axis_channel_config -> config['channel'] in surface.py.
authorW. Trevor King <wking@drexel.edu>
Fri, 29 Jul 2011 14:02:11 +0000 (10:02 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 29 Jul 2011 14:02:11 +0000 (10:02 -0400)
pypiezo/surface.py

index 7da39d408c14135b6e0dc22387f02cf3b31002b3..5fe6fe2032a0269ece6e6550f88a3e99b560dcb0 100644 (file)
@@ -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,