From a5dcf62a6bb64799fba2ad53cab58797f0562a19 Mon Sep 17 00:00:00 2001 From: Sumanto Kar Date: Mon, 2 May 2022 19:20:04 +0530 Subject: Update NgspiceWidget.py --- src/ngspiceSimulation/NgspiceWidget.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/ngspiceSimulation/NgspiceWidget.py') diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index c068d0de..6e9d4fe1 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -40,7 +40,8 @@ class NgspiceWidget(QtWidgets.QWidget): os.chdir(tempdir) else: # For Linux OS - self.command = "cd " + projPath + ";ngspice " + command + self.command = "cd " + projPath + ";ngspice -r " + command.replace(".cir.out",".raw") + \ + " " + command # Creating argument for process self.args = ['-hold', '-e', self.command] self.process.start('xterm', self.args) @@ -50,10 +51,8 @@ class NgspiceWidget(QtWidgets.QWidget): self.obj_appconfig.proc_dict [self.obj_appconfig.current_project['ProjectName']].append( self.process.pid()) - ) + ) 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.command ="gaw " + command.replace(".cir.out",".raw") self.process.start('sh', ['-c', self.command]) + print(self.command) -- cgit From 827ffee432a2669c6deca7424685ff1d4fcaabd4 Mon Sep 17 00:00:00 2001 From: Sumanto Kar Date: Mon, 2 May 2022 20:08:35 +0530 Subject: Fixed Pep8 issues --- src/ngspiceSimulation/NgspiceWidget.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ngspiceSimulation/NgspiceWidget.py') diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index 6e9d4fe1..5d493a42 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -40,8 +40,9 @@ class NgspiceWidget(QtWidgets.QWidget): os.chdir(tempdir) else: # For Linux OS - self.command = "cd " + projPath + ";ngspice -r " + command.replace(".cir.out",".raw") + \ - " " + command + self.command = "cd " + projPath + \ + ";ngspice -r " + command.replace(".cir.out",".raw") + \ + " " + command # Creating argument for process self.args = ['-hold', '-e', self.command] self.process.start('xterm', self.args) -- cgit From 4412deaefad7ab9170b44d441b825c5d87ed1dff Mon Sep 17 00:00:00 2001 From: Sumanto Kar Date: Mon, 2 May 2022 20:10:41 +0530 Subject: Fixed Pep8 issues --- src/ngspiceSimulation/NgspiceWidget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ngspiceSimulation/NgspiceWidget.py') diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index 5d493a42..27e180ac 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -41,7 +41,7 @@ class NgspiceWidget(QtWidgets.QWidget): else: # For Linux OS self.command = "cd " + projPath + \ - ";ngspice -r " + command.replace(".cir.out",".raw") + \ + ";ngspice -r " + command.replace(".cir.out", ".raw") + \ " " + command # Creating argument for process self.args = ['-hold', '-e', self.command] @@ -54,6 +54,6 @@ class NgspiceWidget(QtWidgets.QWidget): self.process.pid()) ) self.process = QtCore.QProcess(self) - self.command ="gaw " + command.replace(".cir.out",".raw") + self.command ="gaw " + command.replace(".cir.out", ".raw") self.process.start('sh', ['-c', self.command]) print(self.command) -- cgit From 08d06a49db0742e56d73a7e10a01acdd466bb85b Mon Sep 17 00:00:00 2001 From: Sumanto Kar Date: Mon, 2 May 2022 20:16:30 +0530 Subject: Fixed Pep8 issues --- src/ngspiceSimulation/NgspiceWidget.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ngspiceSimulation/NgspiceWidget.py') diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index 27e180ac..ba4f9bca 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -41,8 +41,8 @@ class NgspiceWidget(QtWidgets.QWidget): else: # For Linux OS self.command = "cd " + projPath + \ - ";ngspice -r " + command.replace(".cir.out", ".raw") + \ - " " + command + ";ngspice -r " + command.replace(".cir.out", ".raw") + \ + " " + command # Creating argument for process self.args = ['-hold', '-e', self.command] self.process.start('xterm', self.args) @@ -52,8 +52,8 @@ class NgspiceWidget(QtWidgets.QWidget): self.obj_appconfig.proc_dict [self.obj_appconfig.current_project['ProjectName']].append( self.process.pid()) - ) + ) self.process = QtCore.QProcess(self) - self.command ="gaw " + command.replace(".cir.out", ".raw") + self.command = "gaw " + command.replace(".cir.out", ".raw") self.process.start('sh', ['-c', self.command]) print(self.command) -- cgit