Skip to content
Snippets Groups Projects
Commit 4224f6e4 authored by Papeleux Luc's avatar Papeleux Luc
Browse files

pass jobId to battery (to allow multiple runs through launch.py)

parent 5bc89e1c
No related branches found
No related tags found
No related merge requests found
...@@ -199,7 +199,7 @@ class LaunchJob(ParametricJob): ...@@ -199,7 +199,7 @@ class LaunchJob(ParametricJob):
return jobname.encode('ascii','ignore') # convert to ASCII if some strings were unicode return jobname.encode('ascii','ignore') # convert to ASCII if some strings were unicode
def getOutFileName(self): def getOutFileName(self):
outFileName = "%s.%s-%s.txt" % (self.pars['OUTFILE'].val, self.pars['ALGORITHM'].val,self.jobId) outFileName = "%s.%s%s.txt" % (self.pars['OUTFILE'].val, self.pars['ALGORITHM'].val,self.jobId)
if self.debug: if self.debug:
print("outFileName = ", outFileName) print("outFileName = ", outFileName)
return outFileName return outFileName
...@@ -353,6 +353,7 @@ class LaunchJob(ParametricJob): ...@@ -353,6 +353,7 @@ class LaunchJob(ParametricJob):
pin.write(b'battery = b.Battery() \n') pin.write(b'battery = b.Battery() \n')
pin.write(b'battery.keepFacs = True\n') pin.write(b'battery.keepFacs = True\n')
pin.write(('battery.dirs = [r"%s"]\n'%tests).encode('utf-8')) pin.write(('battery.dirs = [r"%s"]\n'%tests).encode('utf-8'))
pin.write(('battery.jobId = r"%s"\n'%self.jobId).encode('utf-8'))
if (self.pars['ALGORITHM'].val == "execfile"): if (self.pars['ALGORITHM'].val == "execfile"):
reg1=r"(.+)_0*([1-9][0-9]*)\.py" reg1=r"(.+)_0*([1-9][0-9]*)\.py"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment