summaryrefslogtreecommitdiff
path: root/src/ngspicetoModelica/NgspicetoModelica.py
diff options
context:
space:
mode:
authorfahim-oscad2016-04-22 12:02:47 +0530
committerfahim-oscad2016-04-22 12:02:47 +0530
commit5f6efbb2f906457d0982188068e3359f723988d0 (patch)
treea57f28fc3d039c3e06ce32ae7ae4f51480ecb4ff /src/ngspicetoModelica/NgspicetoModelica.py
parent6147bc36dd3ab957b8700e7af26f5c2e2c43cfcc (diff)
downloadeSim-5f6efbb2f906457d0982188068e3359f723988d0.tar.gz
eSim-5f6efbb2f906457d0982188068e3359f723988d0.tar.bz2
eSim-5f6efbb2f906457d0982188068e3359f723988d0.zip
Modified Transistor import section code to include proper name from dictionary
Diffstat (limited to 'src/ngspicetoModelica/NgspicetoModelica.py')
-rw-r--r--src/ngspicetoModelica/NgspicetoModelica.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ngspicetoModelica/NgspicetoModelica.py b/src/ngspicetoModelica/NgspicetoModelica.py
index fbf7103e..2d608402 100644
--- a/src/ngspicetoModelica/NgspicetoModelica.py
+++ b/src/ngspicetoModelica/NgspicetoModelica.py
@@ -328,7 +328,8 @@ class NgMoConverter:
modelicaCompInit.append(stat)
elif eachline[0]=='q' or eachline[0]=='Q':
- if words[4]=='npn':
+ trans = transInfo[words[4]]
+ if trans == 'npn':
start = 'Analog.Semiconductors.NPN '
else:
start = 'Analog.Semiconductors.PNP '