summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/kicadtoNgspice/Analysis.py3
-rw-r--r--src/kicadtoNgspice/Convert.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/kicadtoNgspice/Analysis.py b/src/kicadtoNgspice/Analysis.py
index c3443cdb..86a59082 100644
--- a/src/kicadtoNgspice/Analysis.py
+++ b/src/kicadtoNgspice/Analysis.py
@@ -471,7 +471,8 @@ class Analysis(QtGui.QWidget):
try:
self.track_obj.op_check.append(str(json_data["analysis"]["dc"]["Operating Point"]))
except:
- self.track_obj.op_check.append(0)
+ self.track_obj.op_check.append('0')
+
#QtCore.QObject.connect(check,SIGNAL("stateChanged()"),check,SLOT("checkedSlot"))
self.check.stateChanged.connect(self.setflag)
#self.flagcheck = 1
diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py
index f02435d2..26e5b869 100644
--- a/src/kicadtoNgspice/Convert.py
+++ b/src/kicadtoNgspice/Convert.py
@@ -144,7 +144,7 @@ class Convert:
if self.op_check[-1] == 1:
self.no=0
self.writefile.write(".op")
- elif self.op_check[-1] == 0:
+ elif self.op_check[-1] == '0':
self.no=0
self.writefile.write(".dc" +' '+ str(self.dc_entry_var[self.no].text())+ ' '+ str(self.defaultvalue(self.dc_entry_var[self.no+1].text())) + self.converttosciform(self.dc_parameter[self.no]) + ' '+ str(self.defaultvalue(self.dc_entry_var[self.no+3].text()))+ self.converttosciform(self.dc_parameter[self.no+2]) + ' '+ str(self.defaultvalue(self.dc_entry_var[self.no+2].text())) + self.converttosciform(self.dc_parameter[self.no+1]))