diff options
author | Sunil Shetye | 2019-06-24 16:06:39 +0530 |
---|---|---|
committer | Sunil Shetye | 2019-06-24 16:06:39 +0530 |
commit | 4a4a6be98a2c5a802761b4008b55ea635dcc7c93 (patch) | |
tree | face4dd65c943b1d79506c044873c2aa9b602eb2 /src/ngspiceSimulation/pythonPlotting.py | |
parent | ca27e1ab9d418bfece063a38629da4dc09281e45 (diff) | |
download | eSim-4a4a6be98a2c5a802761b4008b55ea635dcc7c93.tar.gz eSim-4a4a6be98a2c5a802761b4008b55ea635dcc7c93.tar.bz2 eSim-4a4a6be98a2c5a802761b4008b55ea635dcc7c93.zip |
pep8: rename ambiguous variable
Diffstat (limited to 'src/ngspiceSimulation/pythonPlotting.py')
-rw-r--r-- | src/ngspiceSimulation/pythonPlotting.py | 26 |
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 |