Files
kicad-lib/scripts/gen_resistors_0402.py
Brent Perteet 278b2db158 Use descriptive names for generated resistor symbols (R0402_4.7K_1%)
Symbols are now named by value+tolerance instead of internal GLE P/N,
e.g. R0402_4.7K_1%, R0402_100_5%, R0402_10.0K_0.1%.

- Add make_symbol_name() to normalise value suffix (k→K) and extract
  tolerance via regex from the Description column
- Deduplicate by sym_name: where two GLE P/Ns share the same
  value+tolerance (alternate approved vendors), keep the first row
  and report the 10 skipped duplicates at runtime
- UMPN field still carries the GLE P/N of the primary vendor

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 15:40:44 +00:00

10 KiB