summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/KicadtoNgspice.py
diff options
context:
space:
mode:
authorFahim2016-02-17 17:00:35 +0530
committerFahim2016-02-17 17:00:35 +0530
commitd634304de8022c499b1a4a23c85aa5f124539d93 (patch)
tree9ec07da28a569b4ebc54c69eba778809457f451d /src/kicadtoNgspice/KicadtoNgspice.py
parent9b6b022edb89e14fa83c3c1d6ebf0a9f96500b1a (diff)
parent8a6f29decb7793e678aa8492f4f8d899087f2f68 (diff)
downloadeSim-d634304de8022c499b1a4a23c85aa5f124539d93.tar.gz
eSim-d634304de8022c499b1a4a23c85aa5f124539d93.tar.bz2
eSim-d634304de8022c499b1a4a23c85aa5f124539d93.zip
Merge branch 'develop'
Conflicts: kicadSchematicLibrary/kicad.pro src/ngspicetoModelica/__init__.py
Diffstat (limited to 'src/kicadtoNgspice/KicadtoNgspice.py')
-rw-r--r--src/kicadtoNgspice/KicadtoNgspice.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py
index a3e41a5f..df776e7e 100644
--- a/src/kicadtoNgspice/KicadtoNgspice.py
+++ b/src/kicadtoNgspice/KicadtoNgspice.py
@@ -92,11 +92,12 @@ class MainWindow(QtGui.QWidget):
print "SCHEMATICINFO",schematicInfo
#List storing model detail
- global modelList,outputOption,unknownModelList,multipleModelList
+ global modelList,outputOption,unknownModelList,multipleModelList,plotText
modelList = []
outputOption = []
- schematicInfo,outputOption,modelList,unknownModelList,multipleModelList = obj_proc.convertICintoBasicBlocks(schematicInfo,outputOption,modelList)
+ plotText = []
+ schematicInfo,outputOption,modelList,unknownModelList,multipleModelList,plotText = obj_proc.convertICintoBasicBlocks(schematicInfo,outputOption,modelList,plotText)
print "Unknown Model List",unknownModelList
print "Multiple Model List",multipleModelList
print "Model List",modelList
@@ -495,7 +496,7 @@ class MainWindow(QtGui.QWidget):
print "Analysis OutPut------>",analysisoutput
#Calling netlist file generation function
- self.createNetlistFile(store_schematicInfo)
+ self.createNetlistFile(store_schematicInfo,plotText)
self.msg = "The Kicad to Ngspice Conversion completed successfully!!!!!!"
QtGui.QMessageBox.information(self, "Information", self.msg, QtGui.QMessageBox.Ok)
@@ -513,7 +514,7 @@ class MainWindow(QtGui.QWidget):
if self.clarg2 == "sub":
self.createSubFile(subPath)
- def createNetlistFile(self,store_schematicInfo):
+ def createNetlistFile(self,store_schematicInfo,plotText):
print "Creating Final netlist"
#print "INFOLINE",infoline
#print "OPTIONINFO",optionInfo
@@ -603,6 +604,8 @@ class MainWindow(QtGui.QWidget):
#out.writelines(outputOption)
out.writelines('print allv > plot_data_v.txt\n')
out.writelines('print alli > plot_data_i.txt\n')
+ for item in plotText:
+ out.writelines(item+'\n')
out.writelines('.endc\n')
out.writelines('.end\n')
out.close()