diff options
-rw-r--r-- | src/frontEnd/DockArea.py | 4 | ||||
-rw-r--r-- | src/ngspiceSimulation/pythonPlotting.py | 7 | ||||
-rw-r--r-- | src/ngspiceSimulation/pythonPlotting.pyc | bin | 17168 -> 17145 bytes |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py index 70af5384..88fecbcf 100644 --- a/src/frontEnd/DockArea.py +++ b/src/frontEnd/DockArea.py @@ -54,14 +54,14 @@ class DockArea(QtGui.QMainWindow): """ self.projDir = self.obj_appconfig.current_project["ProjectName"] self.projName = os.path.basename(self.projDir) - self.project = os.path.join(self.projDir,self.projName) + #self.project = os.path.join(self.projDir,self.projName) global count self.plottingWidget = QtGui.QWidget() self.plottingLayout = QtGui.QVBoxLayout() - self.plottingLayout.addWidget(plotWindow(self.project,self.projName)) + self.plottingLayout.addWidget(plotWindow(self.projDir,self.projName)) #Adding to main Layout self.plottingWidget.setLayout(self.plottingLayout) 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 Binary files differindex eb8c6ddb..bd5a225f 100644 --- a/src/ngspiceSimulation/pythonPlotting.pyc +++ b/src/ngspiceSimulation/pythonPlotting.pyc |