summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornilshah982019-06-13 11:10:23 +0530
committernilshah982019-06-13 12:16:15 +0530
commit20b23a7934f7cf01cd5b4353ddd2e008b40e5ffd (patch)
treedaaace10133835956619b401aca9c252e3e789bc
parent17eaff1e9ac378ef91115848c2e6a7ddabda49c2 (diff)
downloadeSim-20b23a7934f7cf01cd5b4353ddd2e008b40e5ffd.tar.gz
eSim-20b23a7934f7cf01cd5b4353ddd2e008b40e5ffd.tar.bz2
eSim-20b23a7934f7cf01cd5b4353ddd2e008b40e5ffd.zip
linebreak issue fixed for json_data
-rw-r--r--src/kicadtoNgspice/DeviceModel.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/kicadtoNgspice/DeviceModel.py b/src/kicadtoNgspice/DeviceModel.py
index 30ad6985..57fd3f25 100644
--- a/src/kicadtoNgspice/DeviceModel.py
+++ b/src/kicadtoNgspice/DeviceModel.py
@@ -90,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:
@@ -153,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:
@@ -219,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:
@@ -332,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