summaryrefslogtreecommitdiff
path: root/src/ngspiceSimulation
diff options
context:
space:
mode:
authoranjalijaiswal082019-06-01 12:18:54 +0530
committernilshah982019-06-13 12:18:39 +0530
commit23c03bea24b2ad59b8abc1394c39985928373598 (patch)
tree28e582169f9e4c6e6e758606b9de535361852860 /src/ngspiceSimulation
parent06a301b442338236b133a5997b9b9528948ed400 (diff)
downloadeSim-23c03bea24b2ad59b8abc1394c39985928373598.tar.gz
eSim-23c03bea24b2ad59b8abc1394c39985928373598.tar.bz2
eSim-23c03bea24b2ad59b8abc1394c39985928373598.zip
Minor changes
Diffstat (limited to 'src/ngspiceSimulation')
-rw-r--r--src/ngspiceSimulation/NgspiceWidget.py11
-rw-r--r--src/ngspiceSimulation/pythonPlotting.py4
2 files changed, 9 insertions, 6 deletions
diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py
index def1d4e9..ba56df2a 100644
--- a/src/ngspiceSimulation/NgspiceWidget.py
+++ b/src/ngspiceSimulation/NgspiceWidget.py
@@ -6,12 +6,13 @@ import os
# This Class creates NgSpice Window
class NgspiceWidget(QtGui.QWidget):
- """
- Includes functions that checks whether OS is linux or windows
- and creates NgSpice window accordingly.
- """
-
+
def __init__(self, command, projPath):
+ """
+ 1)Creates constructor for NgspiceWidget class.
+ 2)Checks whether OS is linux or windows
+ and creates NgSpice window accordingly.
+ """
QtGui.QWidget.__init__(self)
self.obj_appconfig = Appconfig()
self.process = QtCore.QProcess(self)
diff --git a/src/ngspiceSimulation/pythonPlotting.py b/src/ngspiceSimulation/pythonPlotting.py
index 9f8f8e88..6cf99752 100644
--- a/src/ngspiceSimulation/pythonPlotting.py
+++ b/src/ngspiceSimulation/pythonPlotting.py
@@ -1,4 +1,5 @@
- # Used for decimal division eg 2/3=0.66 and not '0' 6/2=3.0 and 6//2=3
+from __future__ import division # Used for decimal division eg
+# 2/3=0.66 and not '0' 6/2=3.0 and 6//2=3
import os
from PyQt4 import QtGui, QtCore
from decimal import Decimal, getcontext
@@ -19,6 +20,7 @@ class plotWindow(QtGui.QMainWindow):
'''
def __init__(self, fpath, projectName):
+ """This create constructor for plotWindow class."""
QtGui.QMainWindow.__init__(self)
self.fpath = fpath
self.projectName = projectName