Comments (5)
I have narrowed this down, ultimately, to the yet to be implemented .func.
Plus sign (+) based line continuation seems to be a problem as well. Easy enough to work around.
I may be able to work around the unimplemented .func for now; need to test this idea yet.
I'd be willing to work on the .func implementation if that would be helpful.
Thanks.
from pyspice.
Spice parser is certainly far yet complete. Could you package an example showing theses issues?
from pyspice.
Links
http://www.normankoren.com/Audio/Tubemodspice_article.html
http://www.normankoren.com/Audio/Tubemods.zip
from pyspice.
Test parser on lib file
Traceback (most recent call last):
File "./bin/cir2py", line 60, in
parser = SpiceParser(path=args.circuit_file)
File "/home/fabrice/PySpice/PySpice/Spice/Parser.py", line 699, in init
self._statements = self._parse(lines)
File "/home/fabrice/PySpice/PySpice/Spice/Parser.py", line 770, in _parse
element = Element(line)
File "/home/fabrice/PySpice/PySpice/Spice/Parser.py", line 421, in init
self._nodes, stop_location = self._line.read_words(stop_location, number_of_pins)
File "/home/fabrice/PySpice/PySpice/Spice/Parser.py", line 600, in read_words
' '*start_location + '^')
NameError: Bad element line, looking for word 1/4:
TUBE LIBRARY
Traceback (most recent call last):
File "./bin/cir2py", line 60, in
parser = SpiceParser(path=args.circuit_file)
File "/home/fabrice/PySpice/PySpice/Spice/Parser.py", line 699, in init
self._statements = self._parse(lines)
File "/home/fabrice/PySpice/PySpice/Spice/Parser.py", line 770, in _parse
element = Element(line)
File "/home/fabrice/PySpice/PySpice/Spice/Parser.py", line 421, in init
self._nodes, stop_location = self._line.read_words(stop_location, number_of_pins)
File "/home/fabrice/PySpice/PySpice/Spice/Parser.py", line 600, in read_words
' '*start_location + '^')
NameError: Bad element line, looking for word 3/4:
E1 7 0 VALUE=
Traceback (most recent call last):
File "./bin/cir2py", line 60, in
parser = SpiceParser(path=args.circuit_file)
File "/home/fabrice/PySpice/PySpice/Spice/Parser.py", line 699, in init
self._statements = self._parse(lines)
File "/home/fabrice/PySpice/PySpice/Spice/Parser.py", line 770, in _parse
element = Element(line)
File "/home/fabrice/PySpice/PySpice/Spice/Parser.py", line 421, in init
self._nodes, stop_location = self._line.read_words(stop_location, number_of_pins)
File "/home/fabrice/PySpice/PySpice/Spice/Parser.py", line 600, in read_words
' 'start_location + '^')
NameError: Bad element line, looking for word 3/4:
G1 1 3 VALUE={(PWR(V(7),EX)+PWRS(V(7),EX))/KG1ATAN(V(1,3)/KVB)}
...
from pyspice.
from pyspice.
Related Issues (20)
- ac analysis not working for NgSpiceShared
- Nonfunctional Discourse Link HOT 1
- How to retrieve .measure results HOT 1
- Would you like another active project mantainer? HOT 1
- B source : how to define a current-dependent voltage source HOT 1
- AWS Lambda: OSError: cannot load library 'libngspice.so' HOT 4
- Question about the GPL license
- Using `circuit.simulator(simulator='ngspice-subprocess',...)` breaks PySpice execution HOT 3
- _parameters deleted in wrong order
- pyspice-post-installation HOT 1
- Simulate circuit behaviour one time step at a time for code coupling. Issue with initial condition
- Bode diagram plot issue HOT 4
- analysis=simulator.operating_point() from voltage divider is not working HOT 2
- AC circuit using PySpice
- Gaussian and Exponential numerical codes are inverted for random source simulation
- Problem conducting ac_sensitivity analysis.
- Pyspice examples are not included in pre-release testing
- Importing Circuit class not working
- Error parsing Xspice diode model on MacOS Sonoma M1
- Pyspice-memory probelm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyspice.