summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/KicadtoNgspice.py
diff options
context:
space:
mode:
authorfahim2015-04-23 12:06:56 +0530
committerfahim2015-04-23 12:06:56 +0530
commit2c623deaf46848b02efc31a44c5d3fb2d97885e7 (patch)
treea8603c22371ed7379c63bd3055d8c330f38b21bd /src/kicadtoNgspice/KicadtoNgspice.py
parent342730ed59f75ebe1b5df0f886ae9e6bcd787ee6 (diff)
downloadeSim-2c623deaf46848b02efc31a44c5d3fb2d97885e7.tar.gz
eSim-2c623deaf46848b02efc31a44c5d3fb2d97885e7.tar.bz2
eSim-2c623deaf46848b02efc31a44c5d3fb2d97885e7.zip
Subject: Changes in Processing of XML file
Description: Change the compType which is taken from .cir file to modelname which is taken from xml file for more generic pattern
Diffstat (limited to 'src/kicadtoNgspice/KicadtoNgspice.py')
-rw-r--r--src/kicadtoNgspice/KicadtoNgspice.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py
index f8faa997..9452e364 100644
--- a/src/kicadtoNgspice/KicadtoNgspice.py
+++ b/src/kicadtoNgspice/KicadtoNgspice.py
@@ -183,8 +183,8 @@ class MainWindow(QtGui.QWidget):
analysisOption = []
initialCondOption=[]
simulatorOption =[]
- includeOption=[] #Don't know why to use it
- model = [] #Don't know why to use it
+ #includeOption=[] #Don't know why to use it
+ #model = [] #Don't know why to use it
for eachline in optionInfo:
words=eachline.split()
@@ -201,10 +201,10 @@ class MainWindow(QtGui.QWidget):
initialCondOption.append(eachline+'\n')
elif option=='.option':
simulatorOption.append(eachline+'\n')
- elif (option=='.include' or option=='.lib'):
- includeOption.append(eachline+'\n')
- elif (option=='.model'):
- model.append(eachline+'\n')
+ #elif (option=='.include' or option=='.lib'):
+ # includeOption.append(eachline+'\n')
+ #elif (option=='.model'):
+ # model.append(eachline+'\n')
elif option=='.end':
continue;
@@ -239,7 +239,7 @@ class MainWindow(QtGui.QWidget):
-
+#Main Function
def main(args):
print "=================================="
@@ -313,7 +313,6 @@ def main(args):
kingWindow.show()
sys.exit(app.exec_())
-
if __name__ == '__main__':