Skip to content
Snippets Groups Projects
Commit 108a0813 authored by Karim Ahmed's avatar Karim Ahmed
Browse files

[CORRECT] Fix title reports for multiple detectors per run folder

parent 11a201bc
No related branches found
No related tags found
1 merge request!585[CORRECT] Fix title reports for multiple detectors per run folder
...@@ -1241,6 +1241,8 @@ def run(): ...@@ -1241,6 +1241,8 @@ def run():
fmt_args = {'run_path': run_tmp_path, fmt_args = {'run_path': run_tmp_path,
'out_path': out_path, 'out_path': out_path,
'version': version, 'version': version,
'title': title,
'author': author,
'report_to': report_to, 'report_to': report_to,
'in_folder': folder, 'in_folder': folder,
'request_time': request_time, 'request_time': request_time,
......
...@@ -393,7 +393,7 @@ def tex_escape(text): ...@@ -393,7 +393,7 @@ def tex_escape(text):
return regex.sub(lambda match: conv[match.group()], text) return regex.sub(lambda match: conv[match.group()], text)
def finalize(joblist, finaljob, run_path, out_path, version, report_to, data_path='Unknown', def finalize(joblist, finaljob, run_path, out_path, version, title, author, report_to, data_path='Unknown',
request_time='', submission_time=''): request_time='', submission_time=''):
run_path = Path(run_path) run_path = Path(run_path)
...@@ -403,9 +403,6 @@ def finalize(joblist, finaljob, run_path, out_path, version, report_to, data_pat ...@@ -403,9 +403,6 @@ def finalize(joblist, finaljob, run_path, out_path, version, report_to, data_pat
if finaljob: if finaljob:
joblist.append(str(finaljob)) joblist.append(str(finaljob))
metadata = cal_tools.tools.CalibrationMetadata(out_path) metadata = cal_tools.tools.CalibrationMetadata(out_path)
nb_info = metadata.get('notebook', {})
title = nb_info.get('title', 'Unknown calibration')
author = nb_info.get('author', 'anonymous')
job_time_fmt = 'JobID,Start,End,Elapsed,Suspended,State'.split(',') job_time_fmt = 'JobID,Start,End,Elapsed,Suspended,State'.split(',')
job_time_summary = get_job_info(joblist, job_time_fmt) job_time_summary = get_job_info(joblist, job_time_fmt)
......
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