From 7a5b59e08883438b584fdafc6e7611b68f751ccc Mon Sep 17 00:00:00 2001 From: Ebad Kamil <ebad.kamil@xfel.eu> Date: Thu, 29 Oct 2020 14:35:05 +0100 Subject: [PATCH] Bugfix: report generation through finalize --- xfel_calibrate/calibrate.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xfel_calibrate/calibrate.py b/xfel_calibrate/calibrate.py index 78738dcc7..a1572c7b9 100755 --- a/xfel_calibrate/calibrate.py +++ b/xfel_calibrate/calibrate.py @@ -503,7 +503,8 @@ def create_finalize_script(fmt_args, temp_path, job_list): :param temp_path: Path to temporary folder to run slurm job :param job_list: List of slurm jobs """ - tmpl = Template("""#!/usr/bin/env python3 + tmpl = Template("""\ + #!/usr/bin/env python3 import sys from xfel_calibrate.finalize import finalize @@ -722,12 +723,12 @@ def make_par_table(parms, run_tmp_path): col_type[1] = col_type[2] tmpl = Template(''' - Input of the calibration pipeline + Input of the calibration pipeline ================================= .. raw:: latex - \\begin{longtable}{ {% for k in p %}{{k}}{%- endfor %} } + \\begin{longtable}{ {% for k in p %}{{k}}{%- endfor %} } \hline {% for k in lines %} {{ k[0] }} & {{ k[1] }} & {{ k[2] }} \\\\ -- GitLab