From 027f4796b9f5d0819f6b9b0ab0024019a672249d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 23 Jan 2012 16:14:17 -0500 Subject: [PATCH] Don't force integer formatting in AFM._check_target_deflection messages. We're about to raise an exception anyway, so there's no need to be overly picky here. --- pyafm/afm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyafm/afm.py b/pyafm/afm.py index 75df11d..b346275 100644 --- a/pyafm/afm.py +++ b/pyafm/afm.py @@ -154,12 +154,12 @@ class AFM (object): defc = self.piezo._deflection_channel() max_def = defc.get_maxdata() if deflection > max_def: - _LOG.error(('requested setpoint ({:d} bits) is larger than the ' - 'maximum deflection value of {:d} bits' + _LOG.error(('requested setpoint ({} bits) is larger than the ' + 'maximum deflection value of {} bits' ).format(deflection, max_def)) raise ValueError(setpoint) elif deflection < 0: - _LOG.error(('requested setpoint ({:d} bits) is less than the ' + _LOG.error(('requested setpoint ({} bits) is less than the ' 'minimum deflection value of 0 bits' ).format(deflection)) raise ValueError(setpoint) -- 2.26.2