Skip to content
Snippets Groups Projects
Commit 53b28039 authored by Christoph.Knote's avatar Christoph.Knote
Browse files

Log file stuff

parent 6ab0fb0b
Branches
Tags
No related merge requests found
......@@ -111,7 +111,7 @@ class Experiment:
self.fluxes = None
#: Log file of the last run
self.lastLog = None
self.log = None
self.pid = None
self.thread = None
......@@ -236,9 +236,9 @@ class Experiment:
def _pp_run(self, dumbOutput=False):
try:
self.lastLog = []
self.log = []
for line in iter(self.pid.stdout.readline, b''):
self.lastLog.append(line.replace('\n',''))
self.log.append(line.replace('\n',''))
except:
pass
......@@ -318,7 +318,7 @@ class ExperimentFromExample(Experiment):
self.path = os.path.join(work_path, self.name)
self.lastLog = None
self.log = None
self.pid = None
self.thread = None
......@@ -361,7 +361,7 @@ class ExperimentFromExistingRun(Experiment):
self.path = os.path.abspath(path)
self.lastLog = None
self.log = None
self.pid = None
self.thread = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment