-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using circuit.simulator(simulator='ngspice-subprocess',...)
breaks PySpice execution
#352
Comments
I have investigated the problem. It comes from an evolution on NGSpice side that began on 2021-01-01 : From that moment, The message can be easily shown with the following command from the terminal : echo "bla" | ngspice -s
No compatibility mode selected!
Circuit: bla
Note: No ".plot", ".print", or ".fourier" lines; no simulations run which mimics what is done in Server.py If one sets an set ngbehavior=hsa and configures the echo "bla" | ngspice -s
Compatibility modes selected: hs a
Circuit: bla
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000 Please note that the message is not an error; it is just a note given by NGSpice. To fix the issue, one may want to update : to contain something like: self.note = self._read_header_field_line(header_line_iterator, 'Note') (only valid for the latest versions of NGSpice (later than 2022-03-14) I need to check if this first idea for fix is valid. |
Please note, that there is no issue when using the |
Hi @cyber-g ! I'm trying to run ngspice sims with PySpice on Ubuntu, but I'm stuck on an issue. I created the environment variable in my .bashrc: but ngspice can't find the spinit file: Note: can't find the initialization file spinit.
|
Dear @KolosKoblasz Your issue is a little bit off topic of this track issue. However, it should be easy to fix with following explanation. This is documented here : 12.5 Standard configuration file spinit
So if you have your export SPICE_SCRIPTS="/home/kolos/" |
Environment (OS, Python version, PySpice version, simulator)
Ubuntu 20.04.6 LTS
Python 3.8.10
PySpice version: '1.5'
Simulator: NGSpice
Expected Behaviour
No error message ; elements values should be printed
Actual Behaviour
PySpice stops with the following output:
The failure happens for any kind of circuit but is demonstrated below with one of the builtin example.
Steps to reproduce the behaviour
Open example
examples/resistor/voltage-divider.py
and replace lineL25
:with
Then run :
The text was updated successfully, but these errors were encountered: