diff options
author | fahim-oscad | 2016-03-21 14:12:08 +0530 |
---|---|---|
committer | fahim-oscad | 2016-03-21 14:12:08 +0530 |
commit | 697ff38a5712f97a4ca5b81731d4bd3bf0bc69f6 (patch) | |
tree | 81d2ecf940a2aeedb68f8892c8746e1d2ab9f2cd /src | |
parent | 91f2816832a8f708db659ae856a5b2c97744c0cc (diff) | |
download | eSim-697ff38a5712f97a4ca5b81731d4bd3bf0bc69f6.tar.gz eSim-697ff38a5712f97a4ca5b81731d4bd3bf0bc69f6.tar.bz2 eSim-697ff38a5712f97a4ca5b81731d4bd3bf0bc69f6.zip |
Removing Lower case functionality for Reference Model Name
Diffstat (limited to 'src')
-rw-r--r-- | src/ngspicetoModelica/NgspicetoModelica.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ngspicetoModelica/NgspicetoModelica.py b/src/ngspicetoModelica/NgspicetoModelica.py index 74401c9b..582e8796 100644 --- a/src/ngspicetoModelica/NgspicetoModelica.py +++ b/src/ngspicetoModelica/NgspicetoModelica.py @@ -97,9 +97,11 @@ class NgMoConverter: print filename + " does not exist" sys.exit() data = f.read() - #data = data.lower() #No need to make it lower case - newdata = data.split('(') + #data = data.lower() #Won't work if Reference model name is Upper Case + newdata = data.split('(') + #First fetch the refModelName and then lower case its parameter refModelName = newdata[0].split()[1] + newdata[1] = newdata[1].lower() modelParameter = newdata[1].split() modelInfo[refModelName] = {} @@ -255,7 +257,7 @@ class NgMoConverter: elif eachline[0] == 'd': if len(words) > 3: print words[3] - print "ModelInfo",modelInfo + print "ModelInfo----------->",modelInfo n = float(modelInfo[words[3]]['n']) vt_temp = 0.025*n vt = str(vt_temp) |