From 06036bffa314d41f31cbdcd6883c9b3558930326 Mon Sep 17 00:00:00 2001 From: Fahim Date: Wed, 30 Dec 2015 11:18:55 +0530 Subject: Changes for aswitch model --- src/kicadtoNgspice/Processing.py | 17 ++++++++++++----- 1 file 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])): -- cgit