From cec2833a020cc843e843c454b83c10fc0abc7c34 Mon Sep 17 00:00:00 2001 From: Sumanto Kar Date: Mon, 31 Jan 2022 16:33:59 +0530 Subject: Added commands for GTK Analog Wave Viewer Added commands for GTK Analog Wave(GAW) Viewer. If GAW is installed, then eSim will run GAW commands.--- src/ngspiceSimulation/NgspiceWidget.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index 8114f56d..52f6b87d 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -51,3 +51,9 @@ class NgspiceWidget(QtWidgets.QWidget): [self.obj_appconfig.current_project['ProjectName']].append( self.process.pid()) ) + self.process = QtCore.QProcess(self) + self.process = QtCore.QProcess(self) + self.command ="ngspice -b -r " + command.replace(".cir.out",".raw") + \ + " -o " + command.replace(".cir.out",".out") + " " + command + \ + "; gaw " + command.replace(".cir.out",".raw") + self.process.start('sh', ['-c', self.command]) -- cgit From 2cac7350dd625e1922ae656196298586bd760498 Mon Sep 17 00:00:00 2001 From: Sumanto Kar Date: Mon, 31 Jan 2022 16:52:06 +0530 Subject: Resolved pep8 errors --- src/ngspiceSimulation/NgspiceWidget.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index 52f6b87d..ad93bbbe 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -52,8 +52,8 @@ class NgspiceWidget(QtWidgets.QWidget): self.process.pid()) ) self.process = QtCore.QProcess(self) - self.process = QtCore.QProcess(self) - self.command ="ngspice -b -r " + command.replace(".cir.out",".raw") + \ - " -o " + command.replace(".cir.out",".out") + " " + command + \ - "; gaw " + command.replace(".cir.out",".raw") - self.process.start('sh', ['-c', self.command]) + self.command = "ngspice -b -r " + \ + command.replace(".cir.out" , ".raw") + " -o " \ + + command.replace(".cir.out" , ".out") + " " + command + \ + "; gaw " + command.replace(".cir.out" , ".raw") + self.process.start('sh' , ['-c' , self.command]) -- cgit From a4c84ad5858d64054d7b810a913fe7ccfdbf92c0 Mon Sep 17 00:00:00 2001 From: Sumanto Kar Date: Mon, 31 Jan 2022 16:53:17 +0530 Subject: Resolved pep8 errors --- src/ngspiceSimulation/NgspiceWidget.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index ad93bbbe..c068d0de 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -53,7 +53,7 @@ class NgspiceWidget(QtWidgets.QWidget): ) self.process = QtCore.QProcess(self) self.command = "ngspice -b -r " + \ - command.replace(".cir.out" , ".raw") + " -o " \ - + command.replace(".cir.out" , ".out") + " " + command + \ - "; gaw " + command.replace(".cir.out" , ".raw") - self.process.start('sh' , ['-c' , self.command]) + command.replace(".cir.out", ".raw") + " -o " \ + + command.replace(".cir.out", ".out") + " " + command + \ + "; gaw " + command.replace(".cir.out", ".raw") + self.process.start('sh', ['-c', self.command]) -- cgit