summaryrefslogtreecommitdiff
path: root/src/ngspiceSimulation
diff options
context:
space:
mode:
authorFahim2016-03-01 17:24:00 +0530
committerFahim2016-03-01 17:24:00 +0530
commit9347ac2e7c7d7c0693cd85327297b519196dbb90 (patch)
treee296f8b423f063bef60cc6115f6d6b3adfe5e3c8 /src/ngspiceSimulation
parent44d403c92bf62a8885e2a2cddf2bd4019c5532b9 (diff)
downloadeSim-9347ac2e7c7d7c0693cd85327297b519196dbb90.tar.gz
eSim-9347ac2e7c7d7c0693cd85327297b519196dbb90.tar.bz2
eSim-9347ac2e7c7d7c0693cd85327297b519196dbb90.zip
Remove all unwanted print command
Diffstat (limited to 'src/ngspiceSimulation')
-rw-r--r--src/ngspiceSimulation/NgspiceWidget.py3
-rw-r--r--src/ngspiceSimulation/pythonPlotting.py17
2 files changed, 6 insertions, 14 deletions
diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py
index 402c20e3..ee4dafe7 100644
--- a/src/ngspiceSimulation/NgspiceWidget.py
+++ b/src/ngspiceSimulation/NgspiceWidget.py
@@ -14,7 +14,8 @@ class NgspiceWidget(QtGui.QWidget):
self.terminal = QtGui.QWidget(self)
self.layout = QtGui.QVBoxLayout(self)
self.layout.addWidget(self.terminal)
- print"command-------->", command
+
+ print "Argument to ngspice command : ",command
if platform.system() == 'Linux':
self.command = "cd "+projPath+";ngspice "+command
diff --git a/src/ngspiceSimulation/pythonPlotting.py b/src/ngspiceSimulation/pythonPlotting.py
index 9cfc7812..dd0ca532 100644
--- a/src/ngspiceSimulation/pythonPlotting.py
+++ b/src/ngspiceSimulation/pythonPlotting.py
@@ -11,10 +11,10 @@ import numpy as np
class plotWindow(QtGui.QMainWindow):
def __init__(self,fpath,projectName):
QtGui.QMainWindow.__init__(self)
- self.fpath = fpath#+".cir.out"
+ self.fpath = fpath
self.projectName = projectName
self.obj_appconfig = Appconfig()
- print "Path : ",self.fpath
+ print "Complete Project Path : ",self.fpath
print "Project Name : ",self.projectName
self.obj_appconfig.print_info('Ngspice simulation is called : ' + self.fpath)
self.obj_appconfig.print_info('PythonPlotting is called : ' + self.fpath)
@@ -183,18 +183,15 @@ class plotWindow(QtGui.QMainWindow):
self.setCentralWidget(self.mainFrame)
def pushedClear(self):
- #print "Calling Clear Canvas function"
self.text.clear()
self.axes.cla()
self.canvas.draw()
QtCore.SLOT('quit()')
def pushedPlotFunc(self):
- #print "Calling Plot function"
self.parts = str(self.text.text())
self.parts = self.parts.split(" ")
- #print "Parts :",self.parts
-
+
if self.parts[len(self.parts)-1] == '':
self.parts = self.parts[0:-1]
@@ -335,7 +332,6 @@ class plotWindow(QtGui.QMainWindow):
def onPush_ac(self):
- #print "Calling on push ac"
self.axes.cla()
boxCheck = 0
for i,j in zip(self.chkbox,range(len(self.chkbox))):
@@ -353,7 +349,6 @@ class plotWindow(QtGui.QMainWindow):
self.canvas.draw()
def onPush_trans(self):
- #print "Calling on push trans"
self.axes.cla()
boxCheck = 0
for i,j in zip(self.chkbox,range(len(self.chkbox))):
@@ -372,7 +367,6 @@ class plotWindow(QtGui.QMainWindow):
def onPush_dc(self):
- #print "Calling on push dc"
boxCheck = 0
self.axes.cla()
for i,j in zip(self.chkbox,range(len(self.chkbox))):
@@ -402,7 +396,7 @@ class plotWindow(QtGui.QMainWindow):
}[letter]
def multiMeter(self):
- print "MultiMeter is called"
+ print "Function : MultiMeter"
self.obj = {}
boxCheck = 0
loc_x = 300
@@ -451,7 +445,6 @@ class MultimeterWidgetClass(QtGui.QWidget):
class DataExtraction:
def __init__(self):
self.obj_appconfig = Appconfig()
- print "Initialization"
self.data=[] #consists of all the columns of data belonging to nodes and branches
self.y=[] #stores y-axis data
self.x=[] #stores x-axis data
@@ -555,8 +548,6 @@ class DataExtraction:
return p
def openFile(self,fpath):
- #print "Calling Open File"
-
try:
with open (os.path.join(fpath,"plot_data_i.txt")) as f2:
alli = f2.read()