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

Merge branch 'fix/multiple_dets_per_run_report_title' into 'master'

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

See merge request detectors/pycalibration!585
parents f77e1e5d 108a0813
No related branches found
Tags 3.2.0
1 merge request!585[CORRECT] Fix title reports for multiple detectors per run folder
......@@ -1241,6 +1241,8 @@ def run():
fmt_args = {'run_path': run_tmp_path,
'out_path': out_path,
'version': version,
'title': title,
'author': author,
'report_to': report_to,
'in_folder': folder,
'request_time': request_time,
......
......@@ -393,7 +393,7 @@ def tex_escape(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=''):
run_path = Path(run_path)
......@@ -403,9 +403,6 @@ def finalize(joblist, finaljob, run_path, out_path, version, report_to, data_pat
if finaljob:
joblist.append(str(finaljob))
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_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