diff options
-rw-r--r-- | src/kicadtoNgspice/Analysis.py | 14 | ||||
-rw-r--r-- | src/kicadtoNgspice/Analysis.pyc | bin | 11829 -> 11829 bytes | |||
-rw-r--r-- | src/kicadtoNgspice/Convert.py | 9 | ||||
-rw-r--r-- | src/kicadtoNgspice/KicadtoNgspice.pyc | bin | 5130 -> 5130 bytes |
4 files changed, 11 insertions, 12 deletions
diff --git a/src/kicadtoNgspice/Analysis.py b/src/kicadtoNgspice/Analysis.py index 1ad045dd..2dcb43c3 100644 --- a/src/kicadtoNgspice/Analysis.py +++ b/src/kicadtoNgspice/Analysis.py @@ -133,15 +133,15 @@ class Analysis(QtGui.QWidget): self.acgrid.addWidget(self.no_of_points,4,0) self.count=0 - self.ac_entry_var[self.count] = QtGui.QLineEdit() + self.ac_entry_var[self.count] = QtGui.QLineEdit()#start self.acgrid.addWidget(self.ac_entry_var[self.count],2,1) self.ac_entry_var[self.count].setMaximumWidth(150) self.count= self.count+1 - self.ac_entry_var[self.count] = QtGui.QLineEdit() + self.ac_entry_var[self.count] = QtGui.QLineEdit()#stop self.acgrid.addWidget(self.ac_entry_var[self.count],3,1) self.ac_entry_var[self.count].setMaximumWidth(150) self.count= self.count+1 - self.ac_entry_var[self.count] = QtGui.QLineEdit() + self.ac_entry_var[self.count] = QtGui.QLineEdit()#no of pts self.acgrid.addWidget(self.ac_entry_var[self.count],4,1) self.ac_entry_var[self.count].setMaximumWidth(150) @@ -221,19 +221,19 @@ class Analysis(QtGui.QWidget): self.dcgrid.addWidget(self.stop,4,0) self.count=0 - self.dc_entry_var[self.count] = QtGui.QLineEdit() + self.dc_entry_var[self.count] = QtGui.QLineEdit()#source self.dcgrid.addWidget(self.dc_entry_var[self.count],1,1) self.dc_entry_var[self.count].setMaximumWidth(150) self.count= self.count+1 - self.dc_entry_var[self.count] = QtGui.QLineEdit() + self.dc_entry_var[self.count] = QtGui.QLineEdit()#start self.dcgrid.addWidget(self.dc_entry_var[self.count],2,1) self.dc_entry_var[self.count].setMaximumWidth(150) self.count= self.count+1 - self.dc_entry_var[self.count] = QtGui.QLineEdit() + self.dc_entry_var[self.count] = QtGui.QLineEdit()#increment self.dcgrid.addWidget(self.dc_entry_var[self.count],3,1) self.dc_entry_var[self.count].setMaximumWidth(150) self.count= self.count+1 - self.dc_entry_var[self.count] = QtGui.QLineEdit() + self.dc_entry_var[self.count] = QtGui.QLineEdit()#stop self.dcgrid.addWidget(self.dc_entry_var[self.count],4,1) self.dc_entry_var[self.count].setMaximumWidth(150) diff --git a/src/kicadtoNgspice/Analysis.pyc b/src/kicadtoNgspice/Analysis.pyc Binary files differindex ccd3af5f..b33c052a 100644 --- a/src/kicadtoNgspice/Analysis.pyc +++ b/src/kicadtoNgspice/Analysis.pyc diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py index 18006e76..1e293996 100644 --- a/src/kicadtoNgspice/Convert.py +++ b/src/kicadtoNgspice/Convert.py @@ -130,16 +130,15 @@ class Convert: if self.variable== 'AC': self.no=0 - self.writefile.write(".ac " + self.ac_type + ' ' + str(self.ac_entry_var[self.no].text()) + ' ' + self.ac_parameter[self.no]+ ' ' + str(self.ac_entry_var[self.no+1].text()) + ' '+ self.ac_parameter[self.no+1] + ' ' + str(self.ac_entry_var[self.no+2].text())) + self.writefile.write(".ac"+' ' + self.ac_type + ' '+str(self.ac_entry_var[self.no+2].text())+' ' + str(self.ac_entry_var[self.no].text()) + self.ac_parameter[self.no]+ ' ' + str(self.ac_entry_var[self.no+1].text()) + self.ac_parameter[self.no+1] ) elif self.variable=='DC': - self.no=0 - self.writefile.write(".dc " + str(self.dc_entry_var[self.no+1].text())+ ' ' + self.converttosciform(self.dc_parameter[self.no]) + ' '+ str(self.dc_entry_var[self.no+2].text())+ ' ' + self.converttosciform(self.dc_parameter[self.no+1]) + ' '+ str(self.dc_entry_var[self.no+3].text())+ ' ' + self.converttosciform(self.dc_parameter[self.no+2])) + self.no=0 + self.writefile.write(".dc" +' '+ str(self.dc_entry_var[self.no].text())+ ' '+ str(self.dc_entry_var[self.no+1].text()) + self.converttosciform(self.dc_parameter[self.no]) + ' '+ str(self.dc_entry_var[self.no+3].text())+ self.converttosciform(self.dc_parameter[self.no+2]) + ' '+ str(self.dc_entry_var[self.no+2].text()) + self.converttosciform(self.dc_parameter[self.no+1])) elif self.variable == 'TRAN': self.no= 0 - self.writefile.write(".tran " + str(self.tran_entry_var[self.no].text())+ ' ' + self.converttosciform(self.trans_parameter[self.no]) + ' ' + str(self.tran_entry_var[self.no+1].text()) + ' ' + self.converttosciform(self.trans_parameter[self.no+1]) + ' ' + str(self.tran_entry_var[self.no+2].text()) + ' '+ self.converttosciform(self.trans_parameter[self.no+2])) - + self.writefile.write(".tran" + ' '+ str(self.tran_entry_var[self.no+1].text()) + self.converttosciform(self.trans_parameter[self.no+1]) + ' ' + str(self.tran_entry_var[self.no+2].text()) + self.converttosciform(self.trans_parameter[self.no+2])+' '+ str(self.tran_entry_var[self.no].text())+ self.converttosciform(self.trans_parameter[self.no])) else: pass self.writefile.close() diff --git a/src/kicadtoNgspice/KicadtoNgspice.pyc b/src/kicadtoNgspice/KicadtoNgspice.pyc Binary files differindex b61ed5b2..55c51801 100644 --- a/src/kicadtoNgspice/KicadtoNgspice.pyc +++ b/src/kicadtoNgspice/KicadtoNgspice.pyc |