Skip to content
Snippets Groups Projects
Commit 72bad85a authored by Cyril Danilevski's avatar Cyril Danilevski :scooter:
Browse files

Mark finalize.py script as python executable

See merge request detectors/pycalibration!362
parents 9909c756 aac0a8da
No related branches found
No related tags found
1 merge request!362Mark finalize.py script as python executable
......@@ -503,15 +503,15 @@ 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('''
tmpl = Template("""#!/usr/bin/env python3
import sys
from xfel_calibrate.finalize import finalize
finalize(joblist={{joblist}},
finalize(joblist={{joblist}},
finaljob=sys.argv[1],
run_path='{{run_path}}',
out_path='{{out_path}}',
project='{{project}}',
project='{{project}}',
calibration='{{calibration}}',
author='{{author}}',
version='{{version}}',
......@@ -519,8 +519,8 @@ def create_finalize_script(fmt_args, temp_path, job_list):
data_path='{{in_folder}}',
request_time='{{request_time}}',
submission_time='{{submission_time}}')
''')
""")
fmt_args['joblist'] = job_list
f_name = os.path.join(temp_path, "finalize.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