summaryrefslogtreecommitdiff
path: root/src/ngspicetoModelica
diff options
context:
space:
mode:
authorfahim-oscad2016-04-25 19:30:59 +0530
committerfahim-oscad2016-04-25 19:30:59 +0530
commit7981bce4c6391e585d07011c0a3b122c847ab32a (patch)
tree5182f690939ae493fd7bd7c26f77664affc7b90e /src/ngspicetoModelica
parent99001f8ddcfa492c8068b864ec08fe2a85a88106 (diff)
downloadeSim-7981bce4c6391e585d07011c0a3b122c847ab32a.tar.gz
eSim-7981bce4c6391e585d07011c0a3b122c847ab32a.tar.bz2
eSim-7981bce4c6391e585d07011c0a3b122c847ab32a.zip
Added node details for Constant Current Source
Diffstat (limited to 'src/ngspicetoModelica')
-rw-r--r--src/ngspicetoModelica/NgspicetoModelica.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ngspicetoModelica/NgspicetoModelica.py b/src/ngspicetoModelica/NgspicetoModelica.py
index 90c288a6..ad60a46a 100644
--- a/src/ngspicetoModelica/NgspicetoModelica.py
+++ b/src/ngspicetoModelica/NgspicetoModelica.py
@@ -708,10 +708,9 @@ class NgMoConverter:
sourcesInfo = self.separateSource(compInfo)
for eachline in compInfo:
words = eachline.split()
- #print "eachline----->",eachline
- #print "eachline[0]------->",eachline[0]
+
if eachline[0]=='r' or eachline[0]=='R' or eachline[0]=='c' or eachline[0]=='C' or eachline[0]=='d' or eachline[0]=='D' \
- or eachline[0]=='l' or eachline[0]=='L' or eachline[0]=='v' or eachline[0]=='V':
+ or eachline[0]=='l' or eachline[0]=='L' or eachline[0]=='v' or eachline[0]=='V' or eachline[0]=='i' or eachline[0]=='I':
conn = 'connect(' + words[0] + '.p,' + nodeDic[words[1]] + ');'
connInfo.append(conn)
conn = 'connect(' + words[0] + '.n,' + nodeDic[words[2]] + ');'