summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 '