summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/Model.py
diff options
context:
space:
mode:
authornilshah982019-06-07 19:01:08 +0530
committernilshah982019-06-13 12:15:50 +0530
commitfd8107b2f5662851dd5d3a7388e46d6be1eb5125 (patch)
treeaf6fc5573021c7d00d515fdde0a7178cc0147236 /src/kicadtoNgspice/Model.py
parentaa20d92a95166a82f93a19594ede632de0666c8b (diff)
downloadeSim-fd8107b2f5662851dd5d3a7388e46d6be1eb5125.tar.gz
eSim-fd8107b2f5662851dd5d3a7388e46d6be1eb5125.tar.bz2
eSim-fd8107b2f5662851dd5d3a7388e46d6be1eb5125.zip
kicadtoNgspice documentation added
Diffstat (limited to 'src/kicadtoNgspice/Model.py')
-rw-r--r--src/kicadtoNgspice/Model.py25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/kicadtoNgspice/Model.py b/src/kicadtoNgspice/Model.py
index 9af7cbfb..dc94d9de 100644
--- a/src/kicadtoNgspice/Model.py
+++ b/src/kicadtoNgspice/Model.py
@@ -79,11 +79,14 @@ class Model(QtGui.QWidget):
for mod in json_data["model"]:
if json_data["model"][mod]["type"] ==\
line[2] and mod == line[3]:
- self.obj_trac.model_entry_var
- [self.nextcount].setText(
- str(list(
- json_data["model"][mod]["values"]
- [i].values())[0]))
+ (
+ self.obj_trac.model_entry_var
+ [self.nextcount].setText(
+ str(list(
+ json_data
+ ["model"][mod]["values"]
+ [i].values())[0]))
+ )
i = i + 1
except BaseException:
pass
@@ -108,11 +111,13 @@ class Model(QtGui.QWidget):
for mod in json_data["model"]:
if json_data["model"][mod]["type"] ==\
line[2] and mod == line[3]:
- self.obj_trac.model_entry_var
- [self.nextcount].setText(
- str(list(json_data
- ["model"][mod]["values"]
- [i].values())[0]))
+ (
+ self.obj_trac.model_entry_var
+ [self.nextcount].setText(
+ str(list(json_data
+ ["model"][mod]["values"]
+ [i].values())[0]))
+ )
i = i + 1
except BaseException:
pass