diff options
author | Athul George | 2017-12-04 18:36:27 +0530 |
---|---|---|
committer | GitHub | 2017-12-04 18:36:27 +0530 |
commit | 2c905bb7414e87f253db58d0e5a3ebc2bb2d5145 (patch) | |
tree | f2b2270fd9d2da53e2a579ec8e2b2b8c71f60739 /src/kicadtoNgspice/Convert.py | |
parent | 8665dbc0dae4d75377cb25f25afeb7b763b9bff2 (diff) | |
parent | 2dab710a7057db25480817943a0a839a75cd0bf4 (diff) | |
download | eSim-2c905bb7414e87f253db58d0e5a3ebc2bb2d5145.tar.gz eSim-2c905bb7414e87f253db58d0e5a3ebc2bb2d5145.tar.bz2 eSim-2c905bb7414e87f253db58d0e5a3ebc2bb2d5145.zip |
Merge pull request #64 from FOSSEE/json
Json
Diffstat (limited to 'src/kicadtoNgspice/Convert.py')
-rw-r--r-- | src/kicadtoNgspice/Convert.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py index f02435d2..4405eff7 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 or 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])) |