diff options
author | jaseg <git@jaseg.de> | 2024-07-18 14:19:17 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2024-07-18 14:19:17 +0200 |
commit | 79f555a4651e200e6ccdeab167fea4d307af2b6f (patch) | |
tree | 21711889e824e81d1653da33f7aeab9d57b7a609 /gerbonara | |
parent | 501882ea3d4fec51baa1c8711ef78786bd40de7b (diff) | |
download | gerbonara-79f555a4651e200e6ccdeab167fea4d307af2b6f.tar.gz gerbonara-79f555a4651e200e6ccdeab167fea4d307af2b6f.tar.bz2 gerbonara-79f555a4651e200e6ccdeab167fea4d307af2b6f.zip |
macro parser: improve parameter number warning message
Diffstat (limited to 'gerbonara')
-rw-r--r-- | gerbonara/apertures.py | 2 |
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) |