From b93115dbbb4b8f7be956d921bab96082177e07b2 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 5 Mar 2024 08:28:12 -0300 Subject: [PATCH] [Variants][Changed] Avoid W045 on nameless pads. Assuming they are on purpose and not real pads. See #584 --- CHANGELOG.md | 2 ++ kibot/out_base.py | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb08942d..960fa533 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.6.5] - Unreleased ### Changed - KiRi: continue even on corrupted schematics (#583) +- Variants: avoid W045 on nameless pads. Assuming they are on purpose and not + real pads. (See #584) ### Fixed - Netlist generation problems with components on the PCB but not in schematic. diff --git a/kibot/out_base.py b/kibot/out_base.py index f395e79b..56f20950 100644 --- a/kibot/out_base.py +++ b/kibot/out_base.py @@ -431,7 +431,11 @@ class VariantOptions(BaseOptions): # No layers at all. Ridiculous, but happens. # At least add an F.Mask pad_layers.addLayer(fmask if is_front else bmask) - logger.warning(W_WRONGPASTE+'Pad with solder paste, but no copper or solder mask aperture in '+ref) + pad_name = p.GetName() + # Some footprints has solder paste "pads" they don't have a name + if pad_name: + logger.warning(f"{W_WRONGPASTE}Pad with solder paste, but no copper or solder mask aperture " + f" in {ref} ({pad_name})") p.SetLayerSet(pad_layers) old_layers.append(old_c_layers) logger.debugl(3, '- Removed paste/mask from '+ref)