diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/kicadtoNgspice/Processing.py | 17 |
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])): |