From 9eb2372278e7823e0df3ccb94306ce7f62e3f97b Mon Sep 17 00:00:00 2001 From: fahim-oscad Date: Wed, 27 Apr 2016 11:31:51 +0530 Subject: Modified Code for dependant source --- src/ngspicetoModelica/NgspicetoModelica.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ngspicetoModelica/NgspicetoModelica.py') 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]] + ');' -- cgit