diff options
-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': |