Skidl part parameters not carried forward into netlists
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 39/100
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di devbisme/skidl
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
SPICE netlist wires the wrong node to a subcircuit port when an earlier pin is unconnectedForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
[SKiDL BUG] Using components that do not contain a defined datasheet property throws 'Key Error'Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Tutte le issue di devbisme/skidl
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pimutils/vdirsyncer#1242 ·
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
QuantConnect/lean-cli#792 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
open-webui/open-webui#35360 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno