summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrahulp132020-02-26 16:10:58 +0530
committerrahulp132020-02-26 16:10:58 +0530
commit4fce8a8c01e2892b12cd194cb90ca999822eb6c5 (patch)
treeccbf2fd0f303fd8e9474c9abe7d5069d0758cf01 /src
parentde3096c51107371de2361921dca8ee785e643fc3 (diff)
downloadeSim-4fce8a8c01e2892b12cd194cb90ca999822eb6c5.tar.gz
eSim-4fce8a8c01e2892b12cd194cb90ca999822eb6c5.tar.bz2
eSim-4fce8a8c01e2892b12cd194cb90ca999822eb6c5.zip
minor updates
Diffstat (limited to 'src')
-rw-r--r--src/frontEnd/Application.py4
-rw-r--r--src/kicadtoNgspice/KicadtoNgspice.py7
2 files changed, 3 insertions, 8 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index 3ecf9941..92013409 100644
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -188,7 +188,7 @@ class Application(QtGui.QMainWindow):
self.model.triggered.connect(self.open_modelEditor)
self.subcircuit = QtGui.QAction(
- QtGui.QIcon('images/subckt.png'),'<b>Subcircuit</b>', self
+ QtGui.QIcon('images/subckt.png'), '<b>Subcircuit</b>', self
)
self.subcircuit.triggered.connect(self.open_subcircuit)
@@ -518,7 +518,7 @@ class Application(QtGui.QMainWindow):
# Fail Safe ===>
count += 1
- if count >= 100:
+ if count >= 10:
raise Exception(
"Ngspice taking too long for simulation. "
"Check netlist file to change simulation parameters."
diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py
index 8a4d746d..b47f2c38 100644
--- a/src/kicadtoNgspice/KicadtoNgspice.py
+++ b/src/kicadtoNgspice/KicadtoNgspice.py
@@ -255,12 +255,7 @@ class MainWindow(QtGui.QWidget):
check = 0
# Opening previous value file pertaining to the selected project
- fw = open(
- os.path.join(
- projpath,
- project_name +
- "_Previous_Values.xml"),
- 'w')
+ fw = os.path.join(projpath, project_name + "_Previous_Values.xml")
if check == 0:
attr_parent = ET.Element("KicadtoNgspice")