From b02da14912ca9bf756db0828d6d94d1d732d8476 Mon Sep 17 00:00:00 2001 From: fahim Date: Fri, 15 May 2015 12:26:41 +0530 Subject: Subject: Update pythonPlotting Description: Update the project and file path require for python plotting. --- src/ngspiceSimulation/pythonPlotting.py | 7 ++++--- src/ngspiceSimulation/pythonPlotting.pyc | Bin 17168 -> 17145 bytes 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ngspiceSimulation') diff --git a/src/ngspiceSimulation/pythonPlotting.py b/src/ngspiceSimulation/pythonPlotting.py index c7f40ae3..e2156920 100644 --- a/src/ngspiceSimulation/pythonPlotting.py +++ b/src/ngspiceSimulation/pythonPlotting.py @@ -14,7 +14,7 @@ class plotWindow(QtGui.QMainWindow): QtGui.QMainWindow.__init__(self) print "Path : ",fpath print "Project :",projectName - self.fpath = fpath+".cir.out" + self.fpath = fpath self.projName = projectName self.createMainFrame() self.combo = [] @@ -481,9 +481,10 @@ class File_data: with open (fpath+"/plot_data_v.txt") as f1: idata = f1.read() - except: + except Exception as e: tkMessageBox.showinfo("Warning!!", "Click on KI->Ng button before simulation ") - exit(1) + print "Excpetion MSG :",str(e) + #exit(1) try: for l in I[3].split(" "): diff --git a/src/ngspiceSimulation/pythonPlotting.pyc b/src/ngspiceSimulation/pythonPlotting.pyc index eb8c6ddb..bd5a225f 100644 Binary files a/src/ngspiceSimulation/pythonPlotting.pyc and b/src/ngspiceSimulation/pythonPlotting.pyc differ -- cgit