Fix log string formatting in AFM.move_toward_surface().
authorW. Trevor King <wking@drexel.edu>
Fri, 16 Mar 2012 03:49:32 +0000 (23:49 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 16 Mar 2012 03:49:32 +0000 (23:49 -0400)
pyafm/afm.py

index e6d7fb5fe1471c774a8576bd5c8ddce81e3b117a..dd6d2396a2e2bc95a110949e39a4c8e651654f70 100644 (file)
@@ -464,7 +464,7 @@ class AFM (object):
         """Step in approximately `distance` meters.
         """
         steps = int(distance/self.stepper.step_size)
-        _LOG.info('step in {} steps (~{} m)' % (steps, distance))
+        _LOG.info('step in {} steps (~{} m)'.format(steps, distance))
         self.stepper.step_relative(steps)
 
     def move_away_from_surface(self, distance=None):