summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFahim2015-12-29 11:35:57 +0530
committerFahim2015-12-29 11:35:57 +0530
commite4b74bcbaa07bfe96f808db4d9fe6e05c6cde87d (patch)
tree46b0f0503cee13e78f42430f6434edc2533016a5
parent802e75f0919f10d1e3f51081912d40a78bf65c50 (diff)
downloadeSim-e4b74bcbaa07bfe96f808db4d9fe6e05c6cde87d.tar.gz
eSim-e4b74bcbaa07bfe96f808db4d9fe6e05c6cde87d.tar.bz2
eSim-e4b74bcbaa07bfe96f808db4d9fe6e05c6cde87d.zip
Changes for aswitch model
-rw-r--r--src/kicadtoNgspice/Processing.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/kicadtoNgspice/Processing.py b/src/kicadtoNgspice/Processing.py
index 0745fd5b..b0f60826 100644
--- a/src/kicadtoNgspice/Processing.py
+++ b/src/kicadtoNgspice/Processing.py
@@ -256,11 +256,18 @@ class PrcocessNetlist:
try:
if item.split("-")[1] == 'V':
print "Vector"
- modelLine += "["
- for i in range(0,int(item.split("-")[0])):
- modelLine += words[pos]+" "
- pos += 1
- modelLine += "] "
+ if compType == "aswitch":
+ modelLine += "("
+ for i in range(0,int(item.split("-")[0])):
+ modelLine += words[pos]+" "
+ pos += 1
+ modelLine += ") "
+ else:
+ modelLine += "["
+ for i in range(0,int(item.split("-")[0])):
+ modelLine += words[pos]+" "
+ pos += 1
+ modelLine += "] "
elif item.split("-")[1] == 'NV':
print "Non Vector"
for i in range(0,int(item.split("-")[0])):