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

Avoid clashing variable name leading to wrong notebook name

parent 995b3a46
No related branches found
No related tags found
1 merge request!331Some cleanup in calibrate.py
......@@ -890,13 +890,13 @@ def run():
joblist = []
cluster_cores = concurrency.get("cluster cores", 8)
# Check if there are pre-notebooks
for i, notebook in enumerate(pre_notebooks):
for i, rel_path in enumerate(pre_notebooks):
notebook_path = os.path.abspath(
"{}/{}".format(os.path.dirname(__file__), notebook))
"{}/{}".format(os.path.dirname(__file__), rel_path))
with open(notebook_path, "r") as f:
lead_nb = nbformat.read(f, as_version=4)
jobid = concurrent_run(run_tmp_path, lead_nb,
os.path.basename(notebook),
os.path.basename(notebook_path),
args,
job_list=joblist, fmt_args=fmt_args,
cluster_cores=cluster_cores,
......
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