summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ngspiceSimulation/pythonPlotting.py26
-rw-r--r--src/ngspicetoModelica/NgspicetoModelica.py4
2 files changed, 15 insertions, 15 deletions
diff --git a/src/ngspiceSimulation/pythonPlotting.py b/src/ngspiceSimulation/pythonPlotting.py
index 3bf8fe59..de6d958a 100644
--- a/src/ngspiceSimulation/pythonPlotting.py
+++ b/src/ngspiceSimulation/pythonPlotting.py
@@ -585,11 +585,11 @@ class DataExtraction:
# Initializing variable
# 'p' gives no. of lines of data for each node/branch
- # 'l' gives the no of partitions for a single voltage node
+ # 'npv' gives the no of partitions for a single voltage node
# 'vnumber' gives total number of voltage
# 'inumber' gives total number of current
- p = l = vnumber = inumber = 0
+ p = npv = vnumber = inumber = 0
# print "VoltsData : ",self.voltData
# Finding totla number of voltage node
@@ -625,9 +625,9 @@ class DataExtraction:
for i in self.voltData[3:]:
p += 1 # 'p' gives no. of lines of data for each node/branch
if "Index" in i:
- l += 1
- # 'l' gives the no of partitions for a single voltage node
- # print "l:",l
+ npv += 1
+ # 'npv' gives the no of partitions for a single voltage node
+ # print("npv:", npv)
if "AC" in i: # DC for dc files and AC for ac ones
break
@@ -636,9 +636,9 @@ class DataExtraction:
for i in self.voltData[3:]:
p += 1
if "Index" in i:
- l += 1
- # 'l' gives the no of partitions for a single voltage node
- # print "l:",l
+ npv += 1
+ # 'npv' gives the no of partitions for a single voltage node
+ # print("npv:", npv)
if "Transient" in i: # DC for dc files and AC for ac ones
break
@@ -648,16 +648,16 @@ class DataExtraction:
for i in self.voltData[3:]:
p += 1
if "Index" in i:
- l += 1
- # 'l' gives the no of partitions for a single voltage node
- # print "l:",l
+ npv += 1
+ # 'npv' gives the no of partitions for a single voltage node
+ # print("npv:", npv)
if "DC" in i: # DC for dc files and AC for ac ones
break
# print "VoltNumber",vnumber
# print "CurrentNumber",inumber
- vnumber = vnumber // l # vnumber gives the no of voltage nodes
- inumber = inumber // l # inumber gives the no of branches
+ vnumber = vnumber // npv # vnumber gives the no of voltage nodes
+ inumber = inumber // npv # inumber gives the no of branches
# print "VoltNumber",vnumber
# print "CurrentNumber",inumber
diff --git a/src/ngspicetoModelica/NgspicetoModelica.py b/src/ngspicetoModelica/NgspicetoModelica.py
index 1c5e754c..bdbd6ac2 100644
--- a/src/ngspicetoModelica/NgspicetoModelica.py
+++ b/src/ngspicetoModelica/NgspicetoModelica.py
@@ -639,8 +639,8 @@ class NgMoConverter:
tempstatList.append("Level=1" + " ")
try:
- l = mosInfo[words[0]]['l']
- tempstatList.append("L=" + self.getUnitVal(l) + " ")
+ mwl = mosInfo[words[0]]['l']
+ tempstatList.append("L=" + self.getUnitVal(mwl) + " ")
except KeyError:
tempstatList.append("L=1e-6" + " ")
try: