From: W. Trevor King Date: Tue, 19 Apr 2011 17:58:47 +0000 (-0400) Subject: Correct setpoint -> target_deflection typo. X-Git-Tag: v0.3~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ee69b89c47ef07afbd2ebfd0560b27750f98f3b0;p=pyafm.git Correct setpoint -> target_deflection typo. --- 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)