jupedsim_scenarios.report#
Self-contained HTML report for a saved sweep.
build_report reads the sweep.json written by jps-scenarios sweep
(plus the per-trial SQLite trajectories next to it) and writes one HTML
file with matplotlib PNGs embedded as data URIs. It needs the viz
extra:
pip install 'jupedsim-scenarios[viz]'
Sections, in order: header, time until all arrived, per-exit flow, arrival curve, density, failures.
Attributes#
Functions#
|
Write the HTML report for the sweep saved under |
Module Contents#
- build_report(results_dir: str | pathlib.Path, out_path: str | pathlib.Path | None = None, *, playback: bool = False) pathlib.Path[source]#
Write the HTML report for the sweep saved under
results_dir.Returns the path of the written file. Raises
ImportErrorwhen matplotlib is not installed andFileNotFoundErrorwhenresults_dirholds nosweep.json.