diff options
author | fahim-oscad | 2016-03-23 11:12:39 +0530 |
---|---|---|
committer | fahim-oscad | 2016-03-23 11:12:39 +0530 |
commit | 5f405de9cf3f3e968f7a45f48710ae99a2372941 (patch) | |
tree | 3bf319f776e5ffd221c1c8eb62c031c340b28fc9 /src/ngspicetoModelica/NgspicetoModelica.py | |
parent | 09306d977713deba69879a3f35a025c018b74876 (diff) | |
download | eSim-5f405de9cf3f3e968f7a45f48710ae99a2372941.tar.gz eSim-5f405de9cf3f3e968f7a45f48710ae99a2372941.tar.bz2 eSim-5f405de9cf3f3e968f7a45f48710ae99a2372941.zip |
Remove number dependency of node
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 |