summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfahim2015-05-15 12:26:41 +0530
committerfahim2015-05-15 12:26:41 +0530
commitb02da14912ca9bf756db0828d6d94d1d732d8476 (patch)
tree98f01d53e14212776278f2c52e2ee70494cd10f6 /src
parent657794c3c482f8b8d8964a0b81d5d5c1e43ee346 (diff)
downloadeSim-b02da14912ca9bf756db0828d6d94d1d732d8476.tar.gz
eSim-b02da14912ca9bf756db0828d6d94d1d732d8476.tar.bz2
eSim-b02da14912ca9bf756db0828d6d94d1d732d8476.zip
Subject: Update pythonPlotting
Description: Update the project and file path require for python plotting.
Diffstat (limited to 'src')
-rw-r--r--src/frontEnd/DockArea.py4
-rw-r--r--src/ngspiceSimulation/pythonPlotting.py7
-rw-r--r--src/ngspiceSimulation/pythonPlotting.pycbin17168 -> 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
index eb8c6ddb..bd5a225f 100644
--- a/src/ngspiceSimulation/pythonPlotting.pyc
+++ b/src/ngspiceSimulation/pythonPlotting.pyc
Binary files differ