Skidl part parameters not carried forward into netlists

Aperta
#176 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
39/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend, tooling

Direzione di ricerca

Read the referenced netlist generator in skidl/tools/kicad/kicad.py around netlist_gen_comp and trace how Part keyword arguments populate cust_part.fields. Check existing tests for Kicad netlist generation and add coverage for extra fields such as footprint and manf_num, including a keyword like datasheet that already exists in the fields. Done when generated netlists contain the intended values; the issue has had no comments for over three years.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Currently when defining a part one can supply additional kwargs:

from skidl import Part

cust_part = Part(main_lib, '0402_resistor,  description='0402_10v',footprint='main_lib:0402',value=10, manf_num="panasonicseriesX",datasheet='res_0402_pansonicseriesX')

However on the generation of netlists these additional keyword arguments are not passed to the kicad netlist_gen_comp netlist generator, only the cust_part.fields are passed (additionally if kwargs of similar names are passed ie datasheet they are not updated). Is this intentional?

Potentially when parts are created with updated kwargs they could

for k, v in list(kwargs.items()):
            setattr(self, k, v)
            if k.capitalize() in self.fields.keys():
                self.fields[k.capitalize()] = v

which replaces part information in the generated netlist. The parts loaded in kicad may not get these changes, since the parts in the library would need to update. The netlist would then store information about the parts as entered in skidl... which appear to be otherwise redundant with information loaded from kicad.

Some keywords, such as 'value' are passed to kicad, so potentially Kicad can also read these info from the netlist?

Lingua principale
Python
Stelle
1.7k
Fork
184
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di devbisme/skidl

Tutte le issue di devbisme/skidl

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.