diff options
author | fahim-oscad | 2016-04-27 11:31:51 +0530 |
---|---|---|
committer | fahim-oscad | 2016-04-27 11:31:51 +0530 |
commit | 9eb2372278e7823e0df3ccb94306ce7f62e3f97b (patch) | |
tree | 103b1dcaecbc05c00ea992c69c04cc6c19cd662f | |
parent | 5022a36736ffff855f7dada14b5b98988179ecbe (diff) | |
download | eSim-9eb2372278e7823e0df3ccb94306ce7f62e3f97b.tar.gz eSim-9eb2372278e7823e0df3ccb94306ce7f62e3f97b.tar.bz2 eSim-9eb2372278e7823e0df3ccb94306ce7f62e3f97b.zip |
Modified Code for dependant source
-rw-r--r-- | src/ngspicetoModelica/NgspicetoModelica.py | 4 |
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]] + ');' |