From 55cfe66779913747c29f8c4fbc7e1a8e02c04f3c Mon Sep 17 00:00:00 2001 From: fahim-oscad Date: Mon, 18 Apr 2016 13:56:03 +0530 Subject: Modeified Lower case of Voltage Issue --- src/ngspicetoModelica/NgspicetoModelica.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ngspicetoModelica/NgspicetoModelica.py') diff --git a/src/ngspicetoModelica/NgspicetoModelica.py b/src/ngspicetoModelica/NgspicetoModelica.py index 0ea21b8d..b6ea5835 100644 --- a/src/ngspicetoModelica/NgspicetoModelica.py +++ b/src/ngspicetoModelica/NgspicetoModelica.py @@ -269,8 +269,12 @@ class NgMoConverter: #Lets Start with Source details for eachline in self.sourceDetail: - #eachline = eachline.lower() words = eachline.split() + #Preserve component name from lower case function + compName = words[0] + #Now Lower case all other + words = eachline.lower().split() + words[0] = compName typ = words[3].split('(') if typ[0] == "pulse": per = words[9].split(')') -- cgit