diff options
author | fahim | 2015-04-20 18:22:56 +0530 |
---|---|---|
committer | fahim | 2015-04-20 18:22:56 +0530 |
commit | fe285354e017598950572690e11989ab8eae1f81 (patch) | |
tree | 21ce3e93a5a525eff14e1984271d5c01e803a8f9 | |
parent | cff82a13a44c5a3cdf3be5e0a744080726a13772 (diff) | |
parent | 7b95fb166dfa5ae31c033732c5bf90463ed1022b (diff) | |
download | eSim-fe285354e017598950572690e11989ab8eae1f81.tar.gz eSim-fe285354e017598950572690e11989ab8eae1f81.tar.bz2 eSim-fe285354e017598950572690e11989ab8eae1f81.zip |
Merge branch 'master' of https://github.com/FOSSEE/eSim
Conflicts:
src/kicadtoNgspice/KicadtoNgspice.pyc
-rw-r--r-- | src/configuration/Appconfig.pyc | bin | 1331 -> 1334 bytes | |||
-rw-r--r-- | src/configuration/__init__.pyc | bin | 144 -> 144 bytes | |||
-rw-r--r-- | src/frontEnd/ViewManagement.pyc | bin | 3274 -> 3280 bytes | |||
-rw-r--r-- | src/frontEnd/Workspace.pyc | bin | 3497 -> 3504 bytes | |||
-rw-r--r-- | src/kicadtoNgspice/Analysis.pyc | bin | 11829 -> 11847 bytes | |||
-rw-r--r-- | src/kicadtoNgspice/Convert.py | 18 | ||||
-rw-r--r-- | src/kicadtoNgspice/__init__.pyc | bin | 144 -> 145 bytes | |||
-rw-r--r-- | src/projManagement/Kicad.pyc | bin | 4108 -> 4115 bytes | |||
-rw-r--r-- | src/projManagement/Validation.pyc | bin | 1988 -> 1995 bytes | |||
-rw-r--r-- | src/projManagement/Worker.pyc | bin | 1441 -> 1447 bytes | |||
-rw-r--r-- | src/projManagement/__init__.pyc | bin | 145 -> 145 bytes | |||
-rw-r--r-- | src/projManagement/newProject.pyc | bin | 3816 -> 3822 bytes | |||
-rw-r--r-- | src/projManagement/openProject.pyc | bin | 1835 -> 1839 bytes |
13 files changed, 14 insertions, 4 deletions
diff --git a/src/configuration/Appconfig.pyc b/src/configuration/Appconfig.pyc Binary files differindex 7ba34c34..3d2c022d 100644 --- a/src/configuration/Appconfig.pyc +++ b/src/configuration/Appconfig.pyc diff --git a/src/configuration/__init__.pyc b/src/configuration/__init__.pyc Binary files differindex e99acbcf..7a78727c 100644 --- a/src/configuration/__init__.pyc +++ b/src/configuration/__init__.pyc diff --git a/src/frontEnd/ViewManagement.pyc b/src/frontEnd/ViewManagement.pyc Binary files differindex 53ca0251..f4a3ed36 100644 --- a/src/frontEnd/ViewManagement.pyc +++ b/src/frontEnd/ViewManagement.pyc diff --git a/src/frontEnd/Workspace.pyc b/src/frontEnd/Workspace.pyc Binary files differindex 2d2829a6..57c10756 100644 --- a/src/frontEnd/Workspace.pyc +++ b/src/frontEnd/Workspace.pyc diff --git a/src/kicadtoNgspice/Analysis.pyc b/src/kicadtoNgspice/Analysis.pyc Binary files differindex b33c052a..61b12fe2 100644 --- a/src/kicadtoNgspice/Analysis.pyc +++ b/src/kicadtoNgspice/Analysis.pyc diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py index 1e293996..c0d98548 100644 --- a/src/kicadtoNgspice/Convert.py +++ b/src/kicadtoNgspice/Convert.py @@ -130,15 +130,16 @@ class Convert: if self.variable== 'AC': self.no=0 - 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] ) + self.writefile.write(".ac"+' ' + self.ac_type + ' '+ str(self.defaultvalue(self.ac_entry_var[self.no+2].text()))+' ' + str(self.defaultvalue(self.ac_entry_var[self.no].text())) + self.ac_parameter[self.no]+ ' ' + str(self.defaultvalue(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].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])) + 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])) elif self.variable == 'TRAN': self.no= 0 - 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])) + self.writefile.write(".tran" + ' '+ str(self.defaultvalue(self.tran_entry_var[self.no+1].text())) + self.converttosciform(self.trans_parameter[self.no+1]) + ' ' + str(self.defaultvalue(self.tran_entry_var[self.no+2].text())) + self.converttosciform(self.trans_parameter[self.no+2])+' '+ str(self.defaultvalue(self.tran_entry_var[self.no].text()))+ self.converttosciform(self.trans_parameter[self.no])) + else: pass self.writefile.close() @@ -155,6 +156,13 @@ class Convert: return "e-12" else: return "e-00" + + def defaultvalue(self, value): + self.value= value + if self.value == '': + return 0 + else: + pass def addModelParameter(self,schematicInfo): @@ -250,4 +258,6 @@ class Convert: return schematicInfo + +
\ No newline at end of file diff --git a/src/kicadtoNgspice/__init__.pyc b/src/kicadtoNgspice/__init__.pyc Binary files differindex ce5d7c9f..3d94ee17 100644 --- a/src/kicadtoNgspice/__init__.pyc +++ b/src/kicadtoNgspice/__init__.pyc diff --git a/src/projManagement/Kicad.pyc b/src/projManagement/Kicad.pyc Binary files differindex 4011f875..086edc10 100644 --- a/src/projManagement/Kicad.pyc +++ b/src/projManagement/Kicad.pyc diff --git a/src/projManagement/Validation.pyc b/src/projManagement/Validation.pyc Binary files differindex 34e4aca0..701fd65b 100644 --- a/src/projManagement/Validation.pyc +++ b/src/projManagement/Validation.pyc diff --git a/src/projManagement/Worker.pyc b/src/projManagement/Worker.pyc Binary files differindex 1144e9ed..74cd7681 100644 --- a/src/projManagement/Worker.pyc +++ b/src/projManagement/Worker.pyc diff --git a/src/projManagement/__init__.pyc b/src/projManagement/__init__.pyc Binary files differindex f50153e3..c9d8227c 100644 --- a/src/projManagement/__init__.pyc +++ b/src/projManagement/__init__.pyc diff --git a/src/projManagement/newProject.pyc b/src/projManagement/newProject.pyc Binary files differindex 2754be24..a73cc667 100644 --- a/src/projManagement/newProject.pyc +++ b/src/projManagement/newProject.pyc diff --git a/src/projManagement/openProject.pyc b/src/projManagement/openProject.pyc Binary files differindex 441e488f..26147b44 100644 --- a/src/projManagement/openProject.pyc +++ b/src/projManagement/openProject.pyc |