Opened 7 years ago

Last modified 6 years ago

#4922 closed defect

Tool "import ngspice netlist" not working — at Initial Version

Reported by: Dietmar Winkler Owned by: Adeel Asghar
Priority: high Milestone: 1.14.0
Component: OMEdit Version: v1.13.0-dev-nightly
Keywords: Cc:

Description

I tried to run the script ngspicetoModelica.py via the very prominent place under "Tools -> impoort ngspice netlist" just to find out that it doesn't do anything.

After a bit of searching I found some reference. One from the Forum which never seemed to have gotten resolved: https://openmodelica.org/forum/default-topic/1763-reading-a-ngspice-netlist

I also tried running the script directly only to get:

$ python2 /usr/share/omc/scripts/ngspicetoModelica.py
Enter file name: sample.cir
Traceback (most recent call last):
  File "/usr/share/omc/scripts/ngspicetoModelica.py", line 597, in <module>
    modelName, modelInfo, subcktName, paramInfo, transInfo = addModel(optionInfo, dir_name)
  File "/usr/share/omc/scripts/ngspicetoModelica.py", line 80, in addModel
    eachline = eachline[1].split()
IndexError: list index out of range

Questions:

  1. what is the status of this script.
  2. Is it still maintained?
  3. Why is there nowhere documentation to be found for this when it it got such a prominent placement under the "Tools" menu.

Change History (0)

Note: See TracTickets for help on using tickets.