summaryrefslogtreecommitdiff
path: root/src/ngspicetoModelica
diff options
context:
space:
mode:
authorfahim-oscad2016-04-21 16:35:23 +0530
committerfahim-oscad2016-04-21 16:35:23 +0530
commita89ff374e616efcc48945d8644f6d329f18a05bb (patch)
tree965bb4738c1b5b01731b0cc481c7f8d36ceca026 /src/ngspicetoModelica
parentc86b02741c88f220219410508d388bbc56fa766f (diff)
downloadeSim-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.py5
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':