Stylistic cleanups in UnfoldScanner.move_far_from_surface.
authorW. Trevor King <wking@drexel.edu>
Tue, 24 Jan 2012 12:59:04 +0000 (07:59 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 24 Jan 2012 12:59:04 +0000 (07:59 -0500)
unfold_protein/scan.py

index efbfb0d00c371b08b35955b99e4de7a3b0107058..426c09e2a1a110d7c23661db26ab90e608d8ecf3 100644 (file)
@@ -20,7 +20,7 @@
 
 import signal as _signal
 
-from calibcant.calibrate import move_far_from_surface
+from calibcant.calibrate import move_far_from_surface as _move_far_from_surface
 import pypiezo.base as _pypiezo_base
 
 from . import LOG as _LOG
@@ -55,8 +55,9 @@ class UnfoldScanner (object):
         self._stop = True
 
     def move_far_from_surface(self):
-        _LOG.info('retract with the stepper motor')
-        move_far_from_surface(
+        _LOG.info('retract with the stepper motor by {} m'.format(
+                self.unfolder.config['approach']['far']))
+        _move_far_from_surface(
             stepper=self.unfolder.afm.stepper,
             distance=self.unfolder.config['approach']['far'])