summaryrefslogtreecommitdiff
path: root/src/ngspicetoModelica/NgspicetoModelica.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ngspicetoModelica/NgspicetoModelica.py')
-rw-r--r--src/ngspicetoModelica/NgspicetoModelica.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ngspicetoModelica/NgspicetoModelica.py b/src/ngspicetoModelica/NgspicetoModelica.py
index 6483bd13..af926cdb 100644
--- a/src/ngspicetoModelica/NgspicetoModelica.py
+++ b/src/ngspicetoModelica/NgspicetoModelica.py
@@ -756,7 +756,9 @@ class NgMoConverter:
elif eachline[0] in ['f','h','F','H']:
vsource = words[3]
sourceNodes = sourcesInfo[vsource]
- sourceNodes = sourceNodes.split()
+ #print "Source Nodes------>",sourceNodes
+ #print "Source Info------->",sourcesInfo
+ #sourceNodes = sourceNodes.split() #No need to split as it is in the form of list
conn = 'connect(' + words[0] + '.p1,'+ nodeDic[sourceNodes[0]] + ');'
connInfo.append(conn)
conn = 'connect(' + words[0] + '.n1,'+ nodeDic[sourceNodes[1]] + ');'