PyQSPICE: A Python scripting interface for QSPICE

Hi,

I’ve got an offline DM Q&A regarding this Python module and here’s summary which may help someone who gets the same questions.

Q:: Any good documentation?
A:: Sorry…not yet.

  • QuickStart has quick comments before lines.
  • The main module has an explanation in front of each method.

Q:: How to tweak a parameter, run a sim and repeat/loop?
A:: This example is running 2 sims from one next list by changing the netlist “.cir” file with Python regular expression “re” module.


Q:: Why “SJIS” encoding, in the Python module?
A:: See this discussion. The QSPICE uses “Latin-1 Supplement” and many file-encoding judgement routines (checked a couple of standalone encoding detection programs) think it “Shift JIS”, with a probability view point. Just to avoid Python error message, I use the “SJIS” encoding and I know I’m dealing with a file of “Latin-1 Supplement”.

masashi