Fix InputChannelConfig reference and remove debugging printout.
authorW. Trevor King <wking@drexel.edu>
Fri, 29 Jul 2011 13:57:09 +0000 (09:57 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 29 Jul 2011 13:57:09 +0000 (09:57 -0400)
pypiezo/afm.py

index b2c26cc9dad7d6bf25655023ade8a90c66026ecc..fc74e1fc9d2823af1c793d008abd3b3ee2c858f2 100644 (file)
@@ -121,10 +121,8 @@ class AFMPiezo (_base.Piezo):
     the center and try a deflection-limited approach.
 
     >>> p.jump('z', pos)
-    >>> p.config['inputs'][0]
-    >>> p.config['inputs']['channel']
     >>> target_def = _base.convert_volts_to_bits(
-    ...     p.config['inputs'][0]['channel'], 1)
+    ...     p.config['inputs'][0], 1)
     >>> data = p.move_to_pos_or_def('z', target_pos, target_def, step=step,
     ...     return_data=True)
     >>> print (p.last_output['z'] < int(target_pos))