-
Notifications
You must be signed in to change notification settings - Fork 191
Description
I try to use the the following netlist:
Vin1 in 0 dc 0 sin(0 1 1000Meg)
R3 iso 0 50
R2 out2 0 50
R1 out1 0 50
P1 in iso 0 out1 out2 0 QH
.model QH CPL length=75.75m C=66p 33p 66p L=165n 82.5n 165n G=0 0 0 R=0 0 0
.tran .001ns 5n
.end
However, when I try to parse the netlist in a cir file using the following commands:
parser = SpiceParser(path=cir_file)
I am getting the following output with errors:
P1 in iso 0 out1 out2 0 QH
P1 in iso 0 out1 out2 0 QH
P1 in iso 0 out1 out2 0 QH
P1 in iso 0 out1 out2 0 QH
P1 in iso 0 out1 out2 0 QH
Traceback (most recent call last):
File “/Users/huttunen/work/Electronics/NodalAnalysis/Run.py”, line 273, in
main(args)
File “/Users/huttunen/work/Electronics/NodalAnalysis/Run.py”, line 67, in main
parser = SpiceParser(path=args.cir_file)
File “/Users/huttunen/python/miniconda3/envs/spice/lib/python3.7/site-packages/PySpice/Spice/Parser.py”, line 805, in init
self._statements = self._parse(lines)
File “/Users/huttunen/python/miniconda3/envs/spice/lib/python3.7/site-packages/PySpice/Spice/Parser.py”, line 881, in _parse
model = Model(line)
File “/Users/huttunen/python/miniconda3/envs/spice/lib/python3.7/site-packages/PySpice/Spice/Parser.py”, line 281, in init
self._name, self._model_type = parts
ValueError: too many values to unpack (expected 2)
Environment (OS, Python version, PySpice version, simulator)
Mac, Python 3.7, the latest PySpice version (given by "pip install PySpice")