From 89c637c341a281d31ccd63be65a3504d6db79882 Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Fri, 7 Jun 2019 19:15:54 +0530 Subject: made pep8 compliant using autopep8 tool --- src/kicadtoNgspice/KicadtoNgspice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kicadtoNgspice/KicadtoNgspice.py') diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py index 9624fc82..19f3ffe2 100644 --- a/src/kicadtoNgspice/KicadtoNgspice.py +++ b/src/kicadtoNgspice/KicadtoNgspice.py @@ -41,6 +41,7 @@ class MainWindow(QtGui.QWidget): - clarg1 is the path to the .cir file - clarg2 is either None or "sub" depending on the analysis type """ + def __init__(self, clarg1, clarg2=None): QtGui.QWidget.__init__(self) print("==================================") @@ -107,7 +108,7 @@ class MainWindow(QtGui.QWidget): unknownModelList, multipleModelList, plotText - ) = obj_proc.convertICintoBasicBlocks( + ) = obj_proc.convertICintoBasicBlocks( schematicInfo, outputOption, modelList, plotText ) print("=======================================") -- cgit From 8d628dc33e1190dd1f8827bbd26f998d31d0827a Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Fri, 7 Jun 2019 19:25:00 +0530 Subject: projectExplorer made pep8 compliant --- src/kicadtoNgspice/KicadtoNgspice.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/kicadtoNgspice/KicadtoNgspice.py') diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py index 19f3ffe2..ef9201cb 100644 --- a/src/kicadtoNgspice/KicadtoNgspice.py +++ b/src/kicadtoNgspice/KicadtoNgspice.py @@ -484,8 +484,7 @@ class MainWindow(QtGui.QWidget): for key, value in line[7].items(): if( hasattr(value, '__iter__') and - i <= end and type(value) is not - str + i <= end and not isinstance(value, str) ): for item in value: fields = { -- cgit