Inductor_SMD: Allow to define dimensions in YAML, clean-up and refactor, add two Abracon inductors
The main aim of this MR is to add the ability to define the size parameters in YAML, as well as in CSV. This is convenient when a series has only one form factor, otherwise it's extra work and confusing to make a CSV with a single row.
To do this, the gen_inductor.py
script has a refactor to read in data in a type-safe(r) way, using the pattern established in the Package_{Gullwing,BGA,NoLead}
generators: read the data into a class that converts the data, including making the choice between CSV and YAML sources, and stores it in a more encapsulated way. Then feed that into the generator.
It also has an update to use argparse
for the command line arguments, which makes it easier to accept any number of YAML files.
This makes it easier to verify that nothing unexpected changes:
./gen_inductor.py *.yaml -o ~/src/kicad-footprints
The only changes are format updates, and the addition of the not-yet-merged WE-MAPI parts. You can use the first commit in kicad-footprints!3480 (merged) (which regenerates all the inductors in the new format, before the changes in this MR) as a baseline to exclude format changes.
Then, add two definitions using in-YAML size definitions:
- Abracon ASPIAIG-F4020 - this is used on the GMM-7550 module shown at FOSDEM (one of only 3 footprints not obviously in the KiCad libraries)
Mfr 3D fit-up:
- Abracon ASPI-0425, which also adds the ability to define the land pattern with the x-size and the outer spacing (previously unhandled):
Generation output MR: kicad-footprints!3480 (merged)