Fix up ,select_config usage; now unit tests pass.
[pypiezo.git] / pypiezo / afm.py
index da05b68535f5b954983416f71b6311cfc5dc66be..616c6f4b6c3d039bf9b916ab961bca1a4dda6d6d 100644 (file)
@@ -105,8 +105,8 @@ class AFMPiezo (_base.Piezo):
     into the deflection input channel.
 
     >>> target_pos = _base.convert_volts_to_bits(
-    ...     p.config.select_config('axes', 'channel',
-            get_attribute=_base.get_axis_name), 2)
+    ...     p.config.select_config('axes', 'z',
+    ...     get_attribute=_base.get_axis_name)['channel'], 2)
     >>> step = int((target_pos - pos)/5)
     >>> target_def = _base.convert_volts_to_bits(
     ...     p.config.select_config('inputs', 'deflection'), 3)