diff options
author | Fahim | 2015-08-25 12:48:01 +0530 |
---|---|---|
committer | Fahim | 2015-08-25 12:48:01 +0530 |
commit | ebb585e479cd0cb7127d98c0a2bd516b7b981490 (patch) | |
tree | 505ebd7772a96e2896600e637695570f1c387c39 /src/kicadtoNgspice/Convert.py | |
parent | 5e81c99de1606d01c5d07fbe35005ad5a4298c7f (diff) | |
parent | b811557db8cf6f75fe8633aa5a0b09df032d61d4 (diff) | |
download | eSim-ebb585e479cd0cb7127d98c0a2bd516b7b981490.tar.gz eSim-ebb585e479cd0cb7127d98c0a2bd516b7b981490.tar.bz2 eSim-ebb585e479cd0cb7127d98c0a2bd516b7b981490.zip |
Merge pull request #44 from komalsheth236/master
Changes in ac Source Details
Diffstat (limited to 'src/kicadtoNgspice/Convert.py')
-rw-r--r-- | src/kicadtoNgspice/Convert.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py index 2b10f83d..d4ce21f7 100644 --- a/src/kicadtoNgspice/Convert.py +++ b/src/kicadtoNgspice/Convert.py @@ -79,8 +79,9 @@ class Convert: self.start = compline[2] self.end = compline[3] va_val=str(self.entry_var[self.start].text()) if len(str(self.entry_var[self.start].text())) > 0 else '0' + ph_val=str(self.entry_var[self.start+1].text()) if len(str(self.entry_var[self.start+1].text())) > 0 else '0' self.addline = ' '.join(self.addline.split()) - self.addline = self.addline.partition('ac')[0] +" "+'ac'+" "+ va_val + self.addline = self.addline.partition('ac')[0] +" "+'ac'+" "+ va_val+" "+ph_val self.sourcelistvalue.append([self.index,self.addline]) except: print "Caught an exception in ac voltage source ",self.addline |