diff options
author | Sumanto Kar | 2023-04-24 17:05:36 +0530 |
---|---|---|
committer | Sumanto Kar | 2023-04-24 17:05:36 +0530 |
commit | 2cc19b321253a1024ebae4d8c92f2e00fa04c546 (patch) | |
tree | 1fa911fa5cdb7faa69285b5585f82dc81ffd79a8 | |
parent | 6e218518adabcc62063e503bb224a48f056e2122 (diff) | |
download | eSim-2cc19b321253a1024ebae4d8c92f2e00fa04c546.tar.gz eSim-2cc19b321253a1024ebae4d8c92f2e00fa04c546.tar.bz2 eSim-2cc19b321253a1024ebae4d8c92f2e00fa04c546.zip |
Fixed Pep8 issues
-rw-r--r-- | src/kicadtoNgspice/DeviceModel.py | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/kicadtoNgspice/DeviceModel.py b/src/kicadtoNgspice/DeviceModel.py index 28fb5546..31406929 100644 --- a/src/kicadtoNgspice/DeviceModel.py +++ b/src/kicadtoNgspice/DeviceModel.py @@ -254,9 +254,9 @@ class DeviceModel(QtWidgets.QWidget): ") self.grid.addWidget(jfetbox) - - # Adding Device Details # - # Increment row and widget count + + # Adding Device Details # + # Increment row and widget count self.row = self.row + 1 self.devicemodel_dict_end[words[0]] = self.count self.count = self.count + 1 @@ -316,8 +316,8 @@ class DeviceModel(QtWidgets.QWidget): ") self.grid.addWidget(switchbox) - - # Adding Device Details # + + # Adding Device Details # # Increment row and widget count self.row = self.row + 1 @@ -328,7 +328,7 @@ class DeviceModel(QtWidgets.QWidget): # print("Device Model ymod:", words[0]) self.devicemodel_dict_beg[words[0]] = self.count ymodbox = QtWidgets.QGroupBox() - ymodhgrid = QtWidgets.QGridLayout() + ymodgrid = QtWidgets.QGridLayout() ymodbox.setTitle( "Add library for ymod " + words[0] + @@ -379,10 +379,6 @@ class DeviceModel(QtWidgets.QWidget): ") self.grid.addWidget(ymodbox) - - - - # Adding Device Details # @@ -392,7 +388,7 @@ class DeviceModel(QtWidgets.QWidget): self.count = self.count + 1 elif eachline[0] == 'm': - + self.devicemodel_dict_beg[words[0]] = self.count mosfetbox = QtWidgets.QGroupBox() mosfetgrid = QtWidgets.QGridLayout() @@ -461,12 +457,12 @@ class DeviceModel(QtWidgets.QWidget): # print("DEVICE MODEL MATCHING---", \ # child.tag, words[0]) while i <= end: - self.entry_var[i].setText(child[i-beg].text) + self.entry_var[i].setText(child[i - beg].text) if (i - beg) == 0: if os.path.exists(child[0].text): self.entry_var[i] \ - .setText(child[i-beg].text) - path_name = child[i-beg].text + .setText(child[i - beg].text) + path_name = child[i - beg].text else: self.entry_var[i].setText("") i = i + 1 @@ -561,4 +557,3 @@ class DeviceModel(QtWidgets.QWidget): ":" + "W=" + width + " L=" + length + " M=" + multifactor else: self.obj_trac.deviceModelTrack[self.deviceName] = self.libfile - |