From: W. Trevor King Date: Thu, 7 Feb 2013 06:07:34 +0000 (-0500) Subject: scan: Approach the surface with stepper_approach() before looping X-Git-Tag: v0.2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=30183b2a4c37c1a178f28615e317d2cde0af2874;p=unfold-protein.git scan: Approach the surface with stepper_approach() before looping This makes the initial approach much faster if you are starting far from the surface (e.g. after a calibcant calibration). --- diff --git a/unfold_protein/scan.py b/unfold_protein/scan.py index de1edda..e511dfd 100644 --- a/unfold_protein/scan.py +++ b/unfold_protein/scan.py @@ -34,6 +34,8 @@ class UnfoldScanner (object): def run(self): self._stop = False _signal.signal(_signal.SIGTERM, self._handle_stop_signal) + self.unfolder.afm.move_away_from_surface() + self.stepper_approach() for i in range(self.config['velocity']['num loops']): _LOG.info('on loop {} of {}'.format( i, self.config['velocity']['num loops']))