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 | |
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')
-rwxr-xr-x | src/kicadtoNgspice/DeviceModel.py | 6 | ||||
-rw-r--r-- | src/kicadtoNgspice/KicadtoNgspice.py | 6 | ||||
-rw-r--r-- | src/kicadtoNgspice/Model.py | 7 |
3 files changed, 7 insertions, 12 deletions
diff --git a/src/kicadtoNgspice/DeviceModel.py b/src/kicadtoNgspice/DeviceModel.py index f16b30ab..7fb9776e 100755 --- a/src/kicadtoNgspice/DeviceModel.py +++ b/src/kicadtoNgspice/DeviceModel.py @@ -693,7 +693,7 @@ class DeviceModel(QtWidgets.QWidget): # Sumanto Kar, sumantokar@iitb.ac.in # Nagesh Karmali, nags@cse.iitb.ac.in # Firuza Karmali, firuza@cse.iitb.ac.in - # Rahul Paknikar, rahulp@cse.iitb.ac.in + # Rahul Paknikar, rahulp@iitb.ac.in # GUIDED BY: # Kunal Ghosh, VLSI System Design Corp.Pvt.Ltd # Anagha Ghosh, VLSI System Design Corp.Pvt.Ltd @@ -756,9 +756,9 @@ class DeviceModel(QtWidgets.QWidget): outputlist.append(k) if '_OR_' in str(j): realoutputlist.append(k) - if '_W_' in str(j) and not(k in wirelist): + if '_W_' in str(j) and not (k in wirelist): wirelist.append(k) - if '_WR_' in str(j) and not(k in realwirelist): + if '_WR_' in str(j) and not (k in realwirelist): realwirelist.append(k) netnames[-1] = netnames[-1].replace("IPAD", '') 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 diff --git a/src/kicadtoNgspice/Model.py b/src/kicadtoNgspice/Model.py index 1389e556..75c0eaf5 100644 --- a/src/kicadtoNgspice/Model.py +++ b/src/kicadtoNgspice/Model.py @@ -1,11 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -from PyQt5 import QtWidgets, QtCore, QtGui -from PyQt5.QtCore import QObject, pyqtSlot +from PyQt5 import QtWidgets, QtCore from . import TrackWidget from xml.etree import ElementTree as ET import os -import sys class Model(QtWidgets.QWidget): @@ -16,7 +14,6 @@ class Model(QtWidgets.QWidget): """ # by Sumanto and Jay - def addHex(self): """ This function is use to keep track of all Device Model widget @@ -34,10 +31,8 @@ class Model(QtWidgets.QWidget): )[0] ) self.text = open(self.hexfile).read() - chosen_file_path = os.path.abspath(self.hexfile) # By Sumanto and Jay - def uploadHex(self): """ This function is use to keep track of all Device Model widget |