diff options
author | Sunil Shetye | 2019-06-13 13:11:14 +0530 |
---|---|---|
committer | GitHub | 2019-06-13 13:11:14 +0530 |
commit | cfc34bb19977e738582620802415ccde27a03039 (patch) | |
tree | daaace10133835956619b401aca9c252e3e789bc /src/kicadtoNgspice/DeviceModel.py | |
parent | 25c6eddcea3c8a62d9750a78435454544d8c7b14 (diff) | |
parent | 20b23a7934f7cf01cd5b4353ddd2e008b40e5ffd (diff) | |
download | eSim-cfc34bb19977e738582620802415ccde27a03039.tar.gz eSim-cfc34bb19977e738582620802415ccde27a03039.tar.bz2 eSim-cfc34bb19977e738582620802415ccde27a03039.zip |
Merge pull request #86 from nilshah98/documentation
Documentation added and minor fixes
Diffstat (limited to 'src/kicadtoNgspice/DeviceModel.py')
-rw-r--r-- | src/kicadtoNgspice/DeviceModel.py | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/src/kicadtoNgspice/DeviceModel.py b/src/kicadtoNgspice/DeviceModel.py index 909756b5..57fd3f25 100644 --- a/src/kicadtoNgspice/DeviceModel.py +++ b/src/kicadtoNgspice/DeviceModel.py @@ -7,9 +7,18 @@ from . import TrackWidget class DeviceModel(QtGui.QWidget): """ - This class creates Device Library Tab in KicadtoNgspice Window - It dynamically creates the widget for device like diode,mosfet, - transistor and jfet. + - This class creates Device Library Tab in KicadtoNgspice Window + It dynamically creates the widget for device like diode,mosfet, + transistor and jfet. + - Same function as the subCircuit file, except for + this takes different parameters in the if block + - - q TRANSISTOR + - - d DIODE + - - j JFET + - - m MOSFET + - Other 2 functions same as the ones in subCircuit + - - trackLibrary + - - trackLibraryWithoutButton """ def __init__(self, schematicInfo, clarg1): @@ -81,8 +90,9 @@ class DeviceModel(QtGui.QWidget): json_data["deviceModel"][key][0]): self.entry_var[self.count].setText( json_data["deviceModel"][key][0]) - path_name = json_data - ["deviceModel"][key][0] + path_name = ( + json_data["deviceModel"][key][0] + ) else: self.entry_var[self.count].setText("") except BaseException: @@ -144,8 +154,9 @@ class DeviceModel(QtGui.QWidget): try: if os.path.exists( json_data["deviceModel"][key][0]): - path_name = json_data - ["deviceModel"][key][0] + path_name = ( + json_data["deviceModel"][key][0] + ) self.entry_var[self.count].setText( json_data["deviceModel"][key][0]) else: @@ -210,8 +221,9 @@ class DeviceModel(QtGui.QWidget): json_data["deviceModel"][key][0]): self.entry_var[self.count].setText( json_data["deviceModel"][key][0]) - path_name = json_data - ["deviceModel"][key][0] + path_name = ( + json_data["deviceModel"][key][0] + ) else: self.entry_var[self.count].setText("") except BaseException: @@ -323,8 +335,9 @@ class DeviceModel(QtGui.QWidget): if (i - beg) == 0: if os.path.exists( json_data["deviceModel"][key][0]): - path_name = json_data - ["deviceModel"][key][0] + path_name = ( + json_data["deviceModel"][key][0] + ) else: self.entry_var[i].setText("") i = i + 1 |