summaryrefslogtreecommitdiff
path: root/src/frontEnd/Application.py
diff options
context:
space:
mode:
authorPranav P2023-05-03 13:35:10 +0530
committerPranav P2023-05-03 13:35:10 +0530
commitc138ec3aebe4dc894600e0eabccf1659f2b5a838 (patch)
tree889a1e6e8548a01ebd23f0ccdf68bed89976bab4 /src/frontEnd/Application.py
parentf26209f81ec15c103dd35b46f879918011158863 (diff)
downloadeSim-c138ec3aebe4dc894600e0eabccf1659f2b5a838.tar.gz
eSim-c138ec3aebe4dc894600e0eabccf1659f2b5a838.tar.bz2
eSim-c138ec3aebe4dc894600e0eabccf1659f2b5a838.zip
Changed ngspice simulation progressbar design
Diffstat (limited to 'src/frontEnd/Application.py')
-rw-r--r--src/frontEnd/Application.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index 4ebb544c..730ba9d8 100644
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -578,7 +578,7 @@ class Application(QtWidgets.QMainWindow):
is_ngspice_running = self.checkIfProcessRunning("ngspice")
print("Ngspice is running:", is_ngspice_running)
print(st.st_mtime, currTime)
- if st.st_mtime >= currTime and not is_ngspice_running:
+ if st.st_mtime >= currTime - 1 and not is_ngspice_running:
self.is_file_changed = True
self.timer.stop()
self.plot_simulation()
@@ -592,6 +592,7 @@ class Application(QtWidgets.QMainWindow):
# Fail Safe ===>
self.count += 1
if self.count >= 10:
+ self.timer.stop()
print(
"Ngspice taking too long for simulation. "
"Check netlist file (*.cir.out) "