summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/Convert.py
diff options
context:
space:
mode:
authorkomalsheth2362015-08-29 12:42:29 +0530
committerkomalsheth2362015-08-29 12:42:29 +0530
commitb811557db8cf6f75fe8633aa5a0b09df032d61d4 (patch)
tree505ebd7772a96e2896600e637695570f1c387c39 /src/kicadtoNgspice/Convert.py
parent5e81c99de1606d01c5d07fbe35005ad5a4298c7f (diff)
downloadeSim-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.py3
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