diff options
author | athulappadan | 2016-11-23 14:52:09 +0530 |
---|---|---|
committer | athulappadan | 2016-11-23 14:52:09 +0530 |
commit | f3a67dd0076e9099c3de3adbb499a5fa5e32c0e9 (patch) | |
tree | d1dcf6171b05a8dc44145f34779cd23ec0251b70 /src | |
parent | d4ecce1186a8cdefaa277beb647ad154aae2be6b (diff) | |
download | eSim-f3a67dd0076e9099c3de3adbb499a5fa5e32c0e9.tar.gz eSim-f3a67dd0076e9099c3de3adbb499a5fa5e32c0e9.tar.bz2 eSim-f3a67dd0076e9099c3de3adbb499a5fa5e32c0e9.zip |
Bug in dc analysis fixed
Diffstat (limited to 'src')
-rw-r--r-- | src/kicadtoNgspice/Analysis.py | 3 | ||||
-rw-r--r-- | src/kicadtoNgspice/Convert.py | 2 |
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])) |