From 79f555a4651e200e6ccdeab167fea4d307af2b6f Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 18 Jul 2024 14:19:17 +0200 Subject: macro parser: improve parameter number warning message --- gerbonara/apertures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbonara') 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) -- cgit