Giter Site home page Giter Site logo

Tube Library Issues about pyspice HOT 5 CLOSED

pyspice-org avatar pyspice-org commented on June 3, 2024
Tube Library Issues

from pyspice.

Comments (5)

BillScherer avatar BillScherer commented on June 3, 2024

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.

FabriceSalvaire avatar FabriceSalvaire commented on June 3, 2024

Spice parser is certainly far yet complete. Could you package an example showing theses issues?

from pyspice.

FabriceSalvaire avatar FabriceSalvaire commented on June 3, 2024

Links

http://www.normankoren.com/Audio/Tubemodspice_article.html
http://www.normankoren.com/Audio/Tubemods.zip

from pyspice.

FabriceSalvaire avatar FabriceSalvaire commented on June 3, 2024

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))/KG1
ATAN(V(1,3)/KVB)}

...

from pyspice.

FabriceSalvaire avatar FabriceSalvaire commented on June 3, 2024

fixed in 2f910d2 and d39f2b0

from pyspice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.