diff options
Diffstat (limited to 'src/ngspicetoModelica/NgspicetoModelica.py')
-rw-r--r-- | src/ngspicetoModelica/NgspicetoModelica.py | 3 |
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 ' |