Add tiered .asc parser with companion netlist resolution
Implement three-tier resolution for LTspice .asc schematic files: 1. Companion netlist - finds .net/.cir/.sp beside the .asc (automatic) 2. LTspice generation - invokes LTspice binary (opt-in via --generate-netlist) 3. Metadata-only fallback - extracts component refs/values without connectivity Safety: DataCompleteness enum forces callers to check completeness. CLI blocks diagram generation on METADATA_ONLY with clear remediation. Metadata enrichment is additive-only with protected field guards. Also: update project URLs to Gitea, add .asc usage docs to README, fix pre-existing ruff warning in test_single_module.py.
This commit is contained in:
parent
ad03798b4d
commit
08c92bfefb
9 changed files with 833 additions and 61 deletions
23
tests/fixtures/standalone.asc
vendored
Normal file
23
tests/fixtures/standalone.asc
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
Version 4
|
||||
SHEET 1 880 680
|
||||
SYMBOL res 192 160 R0
|
||||
SYMATTR InstName R1
|
||||
SYMATTR Value 4.7k
|
||||
SYMBOL cap 320 160 R0
|
||||
SYMATTR InstName C1
|
||||
SYMATTR Value 100n
|
||||
SYMBOL conn 48 144 R0
|
||||
SYMATTR InstName J1
|
||||
SYMATTR Value DB9_CONN
|
||||
SYMBOL conn 48 288 R0
|
||||
SYMATTR InstName J2
|
||||
SYMATTR Value BARREL_JACK
|
||||
SYMBOL TestPoint 480 128 R0
|
||||
SYMATTR InstName TP1
|
||||
SYMBOL voltage 576 240 R0
|
||||
SYMATTR InstName V1
|
||||
SYMATTR Value 12
|
||||
WIRE 96 176 192 176
|
||||
WIRE 96 320 192 320
|
||||
WIRE 320 160 320 128
|
||||
WIRE 480 128 320 128
|
||||
Loading…
Add table
Add a link
Reference in a new issue