Opened 7 years ago

Closed 6 years ago

#4922 closed defect (fixed)

Tool "import ngspice netlist" not working

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 (last modified by Dietmar Winkler)

I tried to run the script ngspicetoModelica.py via the very prominent place under "Tools -> import 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 (4)

comment:1 by Dietmar Winkler, 7 years ago

Description: modified (diff)

comment:2 by Adeel Asghar, 7 years ago

You can't run the script standalone. Pass a valid ngspice netlist file as argument.

  1. what is the status of this script.
  2. Is it still maintained?

No. This was done by some student as part of her thesis work. I don't know much details about it.

  1. Why is there nowhere documentation to be found for this when it it got such a prominent placement under the "Tools" menu.

Its fine to be under Tools since this is the place where we put link to external tools.

comment:3 by Dietmar Winkler, 7 years ago

OK but all menus in OMEdit should at least be documented as to what they do and how to use them.

comment:4 by Adeel Asghar, 6 years ago

Milestone: Future1.14.0
Resolution: fixed
Status: newclosed

The menus are documented now. 0c638e3/OpenModelica-doc.

Note: See TracTickets for help on using tickets.