diff options
author | Fahim | 2016-03-01 17:24:00 +0530 |
---|---|---|
committer | Fahim | 2016-03-01 17:24:00 +0530 |
commit | 9347ac2e7c7d7c0693cd85327297b519196dbb90 (patch) | |
tree | e296f8b423f063bef60cc6115f6d6b3adfe5e3c8 /src/kicadtoNgspice/Convert.py | |
parent | 44d403c92bf62a8885e2a2cddf2bd4019c5532b9 (diff) | |
download | eSim-9347ac2e7c7d7c0693cd85327297b519196dbb90.tar.gz eSim-9347ac2e7c7d7c0693cd85327297b519196dbb90.tar.bz2 eSim-9347ac2e7c7d7c0693cd85327297b519196dbb90.zip |
Remove all unwanted print command
Diffstat (limited to 'src/kicadtoNgspice/Convert.py')
-rw-r--r-- | src/kicadtoNgspice/Convert.py | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py index 78a39c2f..c7e03210 100644 --- a/src/kicadtoNgspice/Convert.py +++ b/src/kicadtoNgspice/Convert.py @@ -1,7 +1,6 @@ from PyQt4 import QtGui import os -import sys import shutil import TrackWidget from xml.etree import ElementTree as ET @@ -11,7 +10,6 @@ class Convert: This class has all the necessary function required to convert kicad netlist to ngspice netlist. """ def __init__(self,sourcelisttrack,source_entry_var,schematicInfo,clarg1): - print "Start Conversion" self.sourcelisttrack = sourcelisttrack self.schematicInfo = schematicInfo self.entry_var = source_entry_var @@ -23,10 +21,7 @@ class Convert: """ This function add the source details to schematicInfo """ - #print "Adding Source parameter" - #print "SourceListTrack : ",self.sourcelisttrack - #print "Schematic Info ",self.schematicInfo - #print "Entry Var",self.entry_var + self.start = 0 self.end = 0 @@ -207,8 +202,6 @@ class Convert: #print "Model Track :",line if line[2] == 'transfo': try: - print "Transformer-------------->" - print "Line ---------->",line start=line[7] end=line[8] num_turns=str(self.obj_track.model_entry_var[start].text()) @@ -307,20 +300,16 @@ class Convert: schematicInfo.append(item[2]) #Adding Comment schematicInfo.append(item[1]) #Adding model line - print "Schematic Info after ngspice Model------->",schematicInfo - print "Model Parameter Value ",modelParamValue return schematicInfo def addDeviceLibrary(self,schematicInfo,kicadFile): """ This function add the library details to schematicInfo """ - print "Adding Device library to Schematic info file" - + (projpath,filename) = os.path.split(kicadFile) - print "Project Path",projpath - + deviceLibList = self.obj_track.deviceModelTrack deviceLine = {} #Key:Index, Value:with its updated line in the form of list includeLine = [] #All .include line list @@ -392,15 +381,13 @@ class Convert: """ This function add the subcircuit to schematicInfo """ - print "Adding Subcircuit to Schematic info file" - + (projpath,filename) = os.path.split(kicadFile) subList = self.obj_track.subcircuitTrack subLine = {} #Key:Index, Value:with its updated line in the form of list includeLine = [] #All .include line list - print "self.obj_track.subcircuitList--->",self.obj_track.subcircuitList - print "self.obj_track.subcircuitTrack--->",self.obj_track.subcircuitTrack + if len(self.obj_track.subcircuitList) != len(self.obj_track.subcircuitTrack): self.msg = QtGui.QErrorMessage() self.msg.showMessage("Conversion failed. Please add all Subcircuits.") |