From ee4d11bb19eb9513805f72e49fed7980eda5ebea Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 16 Mar 2012 00:38:40 -0400 Subject: [PATCH] Positions are allowed to be floats, so don't format log so strictly. --- pypiezo/afm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.26.2