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 )
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:
- what is the status of this script.
- Is it still maintained?
- 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 , 7 years ago
Description: | modified (diff) |
---|
comment:2 by , 7 years ago
comment:3 by , 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 , 6 years ago
Milestone: | Future → 1.14.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
The menus are documented now. 0c638e3/OpenModelica-doc.
You can't run the script standalone. Pass a valid ngspice netlist file as argument.
No. This was done by some student as part of her thesis work. I don't know much details about it.
Its fine to be under Tools since this is the place where we put link to external tools.