summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ngspicetoModelica/NgspicetoModelica.py6
1 files changed, 5 insertions, 1 deletions
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(')')