Correct setpoint -> target_deflection typo.
authorW. Trevor King <wking@drexel.edu>
Tue, 19 Apr 2011 17:58:47 +0000 (13:58 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 19 Apr 2011 17:58:47 +0000 (13:58 -0400)
pyafm.py

index d46a935cd3521fd5f739314e6d8b9f46d0cec0c4..db1172344222ba6debbbd415261fd76bf91bea03 100644 (file)
--- a/pyafm.py
+++ b/pyafm.py
@@ -81,10 +81,12 @@ class AFM (object):
                 axis_name=self.axis_name, max_deflection=target_def)
         except _FlatFit, e:
             LOG.info(e)
-            pos = self._stepper_approach_again(setpoint=target_def, far=far)
+            pos = self._stepper_approach_again(
+                target_deflection=target_def, far=far)
         except _SurfaceError, e:
             LOG.info(e)
-            pos = self._stepper_approach_again(setpoint=target_def, far=far)
+            pos = self._stepper_approach_again(
+                target_deflection=target_def, far=far)
 
         pos_m = _convert_bits_to_meters(
             axis.axis_channel_config, axis.axis_config, pos)