Positions are allowed to be floats, so don't format log so strictly.
authorW. Trevor King <wking@drexel.edu>
Fri, 16 Mar 2012 04:38:40 +0000 (00:38 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 16 Mar 2012 04:38:40 +0000 (00:38 -0400)
pypiezo/afm.py

index 488caffff47fa40272753fb105e3cd4b30dfa5df..02c2063d0ff50227d944d2c595824ce3191600d9 100644 (file)
@@ -231,8 +231,8 @@ class AFMPiezo (_base.Piezo):
             self.jump(axis_name, jump_to)
             current_deflection = self.read_deflection()
             log_string = (
-                ('current z piezo position {:6d} (target {:6d}), '
-                 'current deflection {:6d} (target {:6d})').format(
+                ('current z piezo position {} (target {}), '
+                 'current deflection {} (target {})').format(
                     self.last_output[axis_name], position,
                     current_deflection, deflection))
             _LOG.debug(log_string)