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

Sort 'precorrection' notebook before main correction notebooks in report

parent dd54c7e7
No related branches found
No related tags found
1 merge request!331Some cleanup in calibrate.py
......@@ -272,6 +272,16 @@ def make_report(run_path, tmp_path, out_path, project, author, version,
if "summary" in f.lower() and f not in lead_rstfiles:
direntries.insert(len(lead_rstfiles),
direntries.pop(direntries.index(f)))
# Move 'precorrection' notebook to the top if it exists
# TODO: find a better way to order the report content
elif "precorrection" in f.lower():
# There's currently only 1 case with 'precorrection', and that
# also has a summary notebook, so we can hardcode N+1 until we
# rework this.
direntries.insert(len(lead_rstfiles) + 1,
direntries.pop(direntries.index(f)))
files_to_handle = []
for entry in direntries:
if isfile("{}/{}".format(run_path, entry)):
......
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