diff options
author | komalsheth236 | 2015-08-29 12:42:29 +0530 |
---|---|---|
committer | komalsheth236 | 2015-08-29 12:42:29 +0530 |
commit | b811557db8cf6f75fe8633aa5a0b09df032d61d4 (patch) | |
tree | 505ebd7772a96e2896600e637695570f1c387c39 /src/kicadtoNgspice/Convert.py | |
parent | 5e81c99de1606d01c5d07fbe35005ad5a4298c7f (diff) | |
download | eSim-b811557db8cf6f75fe8633aa5a0b09df032d61d4.tar.gz eSim-b811557db8cf6f75fe8633aa5a0b09df032d61d4.tar.bz2 eSim-b811557db8cf6f75fe8633aa5a0b09df032d61d4.zip |
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 |