Skip to content
Snippets Groups Projects

Feat: Remove extra information from report

Merged Mikhail Karnevskiy requested to merge feat/report_cleaning into master
All threads resolved!
1 file
+ 12
8
Compare changes
  • Side-by-side
  • Inline
@@ -129,17 +129,21 @@ def make_report(run_path, tmp_path, out_path, project, author, version, report_t
if ext == ".rst" and "index" not in name:
files_to_handle.append(name.strip())
with open("{}/index.rst".format(run_path), "w+") as mf:
mf.write('Calibration report\n')
mf.write('==================\n\n')
indexTmp = Template('''
Calibration report
==================
.. toctree::
:maxdepth: 2
{% for k in keys %}
{{ k }}
{%- endfor %}
''')
mf.write('.. toctree::\n')
mf.write(' :maxdepth: 2\n\n')
for f in files_to_handle:
mf.write(' {} \n'.format(f))
with open("{}/index.rst".format(run_path), "w+") as mf:
mf.write(textwrap.dedent(indexTmp.render(keys=files_to_handle)))
# finally call the make scripts
os.chdir(run_path)
try:
import subprocess
Loading