diff options
author | rahulp13 | 2023-06-13 18:10:16 +0530 |
---|---|---|
committer | rahulp13 | 2023-06-13 18:10:16 +0530 |
commit | 172debd60ec1bae09c6b9c9180a388628e819909 (patch) | |
tree | d37e6da4a8ed3dbaf761751df3d3224662a611bf /src/kicadtoNgspice/KicadtoNgspice.py | |
parent | 2ed5f8dce60da2dfde8cf36a8f8b29d3c2fb1107 (diff) | |
download | eSim-172debd60ec1bae09c6b9c9180a388628e819909.tar.gz eSim-172debd60ec1bae09c6b9c9180a388628e819909.tar.bz2 eSim-172debd60ec1bae09c6b9c9180a388628e819909.zip |
maker module flake8 compliant & added docstrings
Diffstat (limited to 'src/kicadtoNgspice/KicadtoNgspice.py')
-rw-r--r-- | src/kicadtoNgspice/KicadtoNgspice.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py index 6a919de9..231efd52 100644 --- a/src/kicadtoNgspice/KicadtoNgspice.py +++ b/src/kicadtoNgspice/KicadtoNgspice.py @@ -10,7 +10,7 @@ # BUGS: --- # NOTES: --- # AUTHOR: Fahim Khan, fahim.elex@gmail.com -# MODIFIED: Rahul Paknikar, rahulp@cse.iitb.ac.in +# MODIFIED: Rahul Paknikar, rahulp@iitb.ac.in # ORGANIZATION: eSim Team at FOSSEE, IIT Bombay # CREATED: Wednesday 04 March 2015 # REVISION: Sunday 18 September 2022 @@ -560,7 +560,7 @@ class MainWindow(QtWidgets.QWidget): attr_ui = ET.SubElement(attr_model, line[3], name="type") attr_ui.text = line[2] for key, value in line[7].items(): - if( + if ( hasattr(value, '__iter__') and i <= end and not isinstance(value, str) ): @@ -849,7 +849,7 @@ class MainWindow(QtWidgets.QWidget): for i in range(2, len(words) - 1): subcktInfo += words[i] + " " continue - if( + if ( words[0] == ".end" or words[0] == ".ac" or words[0] == ".dc" or |