From: W. Trevor King Date: Fri, 16 Mar 2012 04:38:40 +0000 (-0400) Subject: Positions are allowed to be floats, so don't format log so strictly. X-Git-Tag: 0.7~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ee4d11bb19eb9513805f72e49fed7980eda5ebea;p=pypiezo.git Positions are allowed to be floats, so don't format log so strictly. --- diff --git a/pypiezo/afm.py b/pypiezo/afm.py index 488caff..02c2063 100644 --- a/pypiezo/afm.py +++ b/pypiezo/afm.py @@ -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)