diff options
author | fahim-oscad | 2016-04-21 16:35:23 +0530 |
---|---|---|
committer | fahim-oscad | 2016-04-21 16:35:23 +0530 |
commit | a89ff374e616efcc48945d8644f6d329f18a05bb (patch) | |
tree | 965bb4738c1b5b01731b0cc481c7f8d36ceca026 /src/ngspicetoModelica | |
parent | c86b02741c88f220219410508d388bbc56fa766f (diff) | |
download | eSim-a89ff374e616efcc48945d8644f6d329f18a05bb.tar.gz eSim-a89ff374e616efcc48945d8644f6d329f18a05bb.tar.bz2 eSim-a89ff374e616efcc48945d8644f6d329f18a05bb.zip |
Remove hyphen from ngspice node
Diffstat (limited to 'src/ngspicetoModelica')
-rw-r--r-- | src/ngspicetoModelica/NgspicetoModelica.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ngspicetoModelica/NgspicetoModelica.py b/src/ngspicetoModelica/NgspicetoModelica.py index cdb41299..5467b98b 100644 --- a/src/ngspicetoModelica/NgspicetoModelica.py +++ b/src/ngspicetoModelica/NgspicetoModelica.py @@ -558,6 +558,8 @@ class NgMoConverter: #Removing '[' and ']' from compInfo for Digital node for i in range(0,len(compInfo),1): compInfo[i] = compInfo[i].replace("[","").replace("]","") + #Remove "-" from node as it does not work in modelica + compInfo[i] = compInfo[i].replace("-","") for eachline in compInfo: @@ -583,7 +585,8 @@ class NgMoConverter: for i in nodeTemp: if i not in node: node.append(i) - + + for i in range(0, len(node),1): nodeDic[node[i]] = 'n' + node[i] if ifSub == '0': |