From e4b74bcbaa07bfe96f808db4d9fe6e05c6cde87d Mon Sep 17 00:00:00 2001 From: Fahim Date: Tue, 29 Dec 2015 11:35:57 +0530 Subject: Changes for aswitch model --- src/kicadtoNgspice/Processing.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'src') 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])): -- cgit