summaryrefslogtreecommitdiff
path: root/src/ngspiceSimulation/pythonPlotting.py
diff options
context:
space:
mode:
authorfahim2015-06-08 14:21:19 +0530
committerfahim2015-06-08 14:21:19 +0530
commita783d14e674082a49ab5d5b7943ec5fc1f4c98f2 (patch)
tree3c89bbf40981d76b108d052967656f6c27652a4f /src/ngspiceSimulation/pythonPlotting.py
parent2a87f0eae40b90cc0657e46cbb8532d99f9373ab (diff)
downloadeSim-a783d14e674082a49ab5d5b7943ec5fc1f4c98f2.tar.gz
eSim-a783d14e674082a49ab5d5b7943ec5fc1f4c98f2.tar.bz2
eSim-a783d14e674082a49ab5d5b7943ec5fc1f4c98f2.zip
Subject: Added Note Area changes
Description: Added Note Area Changes
Diffstat (limited to 'src/ngspiceSimulation/pythonPlotting.py')
-rw-r--r--src/ngspiceSimulation/pythonPlotting.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ngspiceSimulation/pythonPlotting.py b/src/ngspiceSimulation/pythonPlotting.py
index 60665f96..00077e14 100644
--- a/src/ngspiceSimulation/pythonPlotting.py
+++ b/src/ngspiceSimulation/pythonPlotting.py
@@ -5,14 +5,18 @@ from decimal import Decimal
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as NavigationToolbar
from matplotlib.figure import Figure
+from configuration.Appconfig import Appconfig
class plotWindow(QtGui.QMainWindow):
def __init__(self,fpath,projectName):
QtGui.QMainWindow.__init__(self)
self.fpath = fpath#+".cir.out"
self.projectName = projectName
+ self.obj_appconfig = Appconfig()
print "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)
self.combo = []
self.combo1 = []
self.combo1_rev = []
@@ -377,6 +381,7 @@ class plotWindow(QtGui.QMainWindow):
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
@@ -495,6 +500,7 @@ class DataExtraction:
except Exception as e:
print "Exception Message : ",str(e)
+ self.obj_appconfig.print_error('Exception Message :' + str(e))
self.msg = QtGui.QErrorMessage(None)
self.msg.showMessage('Unable to open plot data files.')
self.msg.setWindowTitle("Error Message:openFile")
@@ -508,6 +514,7 @@ class DataExtraction:
#print "NBILIST : ",self.NBIList
except Exception as e:
print "Exception Message : ",str(e)
+ self.obj_appconfig.print_error('Exception Message :' + str(e))
self.msg = QtGui.QErrorMessage(None)
self.msg.showMessage('Error in Analysis File.')
self.msg.setWindowTitle("Error Message:openFile")