From a89ff374e616efcc48945d8644f6d329f18a05bb Mon Sep 17 00:00:00 2001 From: fahim-oscad Date: Thu, 21 Apr 2016 16:35:23 +0530 Subject: Remove hyphen from ngspice node --- src/ngspicetoModelica/NgspicetoModelica.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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': -- cgit