diff options
Diffstat (limited to 'src/ngspicetoModelica/NgspicetoModelica.py')
-rw-r--r-- | src/ngspicetoModelica/NgspicetoModelica.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ngspicetoModelica/NgspicetoModelica.py b/src/ngspicetoModelica/NgspicetoModelica.py index 61843c25..df7113ac 100644 --- a/src/ngspicetoModelica/NgspicetoModelica.py +++ b/src/ngspicetoModelica/NgspicetoModelica.py @@ -259,9 +259,9 @@ class NgMoConverter: break for eachline in compInfo: words = eachline.split() - val = words[3] - value = self.splitIntoVal(val) - _value = self.getUnitVal(words[-1]) + #val = words[3] + #value = self.splitIntoVal(val) + value = self.getUnitVal(words[-1]) if eachline[0] == 'r': stat = 'Analog.Basic.Resistor ' + words[0] + '(R = ' + value + ');' modelicaCompInit.append(stat) @@ -384,7 +384,7 @@ class NgMoConverter: else: continue - if '0' in node: + if '0' or 'gnd' in node: modelicaCompInit.append('Analog.Basic.Ground g;') return modelicaCompInit, numNodesSub |