Skip to content
Snippets Groups Projects
Commit 5d795520 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Use os.path instead of string formatting

parent 191aca37
No related branches found
No related tags found
1 merge request!489Assorted cleanup of xfel-calibrate
......@@ -773,7 +773,7 @@ def concurrent_run(
return jobid
def make_par_table(parms, run_tmp_path):
def make_par_table(parms, run_tmp_path: str):
"""
Create a table with input parameters of the notebook
......@@ -834,7 +834,7 @@ def make_par_table(parms, run_tmp_path):
\end{longtable}
''')
f_name = "{}/InputParameters.rst".format(run_tmp_path)
f_name = os.path.join(run_tmp_path, "InputParameters.rst")
with open(f_name, "w") as finfile:
finfile.write(textwrap.dedent(tmpl.render(p=col_type, lines=l_parms)))
......
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