From ee69b89c47ef07afbd2ebfd0560b27750f98f3b0 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 19 Apr 2011 13:58:47 -0400 Subject: [PATCH] Correct setpoint -> target_deflection typo. --- pyafm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyafm.py b/pyafm.py index d46a935..db11723 100644 --- 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) -- 2.26.2