summaryrefslogtreecommitdiff
path: root/src/ngspiceSimulation
diff options
context:
space:
mode:
authorSunil Shetye2019-06-24 16:09:42 +0530
committerGitHub2019-06-24 16:09:42 +0530
commitc59e3bed0598fc7399339e20c4696253d4d3fbc8 (patch)
treeface4dd65c943b1d79506c044873c2aa9b602eb2 /src/ngspiceSimulation
parentca27e1ab9d418bfece063a38629da4dc09281e45 (diff)
parent4a4a6be98a2c5a802761b4008b55ea635dcc7c93 (diff)
downloadeSim-c59e3bed0598fc7399339e20c4696253d4d3fbc8.tar.gz
eSim-c59e3bed0598fc7399339e20c4696253d4d3fbc8.tar.bz2
eSim-c59e3bed0598fc7399339e20c4696253d4d3fbc8.zip
Merge pull request #97 from sunilshetye/ambiguous
pep8: rename ambiguous variable
Diffstat (limited to 'src/ngspiceSimulation')
-rw-r--r--src/ngspiceSimulation/pythonPlotting.py26
1 files changed, 13 insertions, 13 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