diff options
author | Fahim | 2015-12-30 11:18:55 +0530 |
---|---|---|
committer | Fahim | 2015-12-30 11:18:55 +0530 |
commit | 06036bffa314d41f31cbdcd6883c9b3558930326 (patch) | |
tree | e66a84ed96c15696c42ea1cd2314eb1c6e932cc7 | |
parent | e875848c4fd84ca34c5ff9e22e8be4b90182641a (diff) | |
download | eSim-06036bffa314d41f31cbdcd6883c9b3558930326.tar.gz eSim-06036bffa314d41f31cbdcd6883c9b3558930326.tar.bz2 eSim-06036bffa314d41f31cbdcd6883c9b3558930326.zip |
Changes for aswitch model
-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])): |