summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2024-07-18 14:19:17 +0200
committerjaseg <git@jaseg.de>2024-07-18 14:19:17 +0200
commit79f555a4651e200e6ccdeab167fea4d307af2b6f (patch)
tree21711889e824e81d1653da33f7aeab9d57b7a609
parent501882ea3d4fec51baa1c8711ef78786bd40de7b (diff)
downloadgerbonara-79f555a4651e200e6ccdeab167fea4d307af2b6f.tar.gz
gerbonara-79f555a4651e200e6ccdeab167fea4d307af2b6f.tar.bz2
gerbonara-79f555a4651e200e6ccdeab167fea4d307af2b6f.zip
macro parser: improve parameter number warning message
-rw-r--r--gerbonara/apertures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/apertures.py b/gerbonara/apertures.py
index f057052..747da37 100644
--- a/gerbonara/apertures.py
+++ b/gerbonara/apertures.py
@@ -456,7 +456,7 @@ class ApertureMacroInstance(Aperture):
# We do this because here we do not have information about which parameter has which physical units.
parameters = self.parameters
if len(parameters) > self.macro.num_parameters:
- warnings.warn('Aperture definition using macro {self.macro.name} has more parameters than the macro uses.')
+ warnings.warn(f'Aperture definition using macro {self.macro.name} has more parameters than the macro uses.')
parameters = parameters[:self.macro.num_parameters]
return tuple(parameters)