Automatic report generation#14
Merged
Merged
Conversation
Coverage Report for CI Build 26114921953Coverage decreased (-0.9%) to 68.415%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions283 previously-covered lines in 3 files lost coverage. Coverage Stats
💛 - Coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces an end-to-end report generation API for benchmarks, including optional report creation directly from
Benchmark.run(). The report workflow builds structured report metadata, renders plots (absolute + C/E), and adds validation quality plots and observable-level summary charts based on verbosity. Reports can be rendered to YAML and PDF.What is new
Benchmark.run(..., generate_report=False, report_config=None)now optionally generates a report after a benchmark run.results_database/{benchmark_name}/experiment.h5when available.ResultSourceentries.API overview
1) Run-time report generation
This triggers report generation after the run completes. If
report_configis omitted, defaults are:output_dir=report/include_yaml=Trueinclude_pdf=Trueverbosity=22) Manual report pipeline
Use this when you want to customize the report or run it outside
Benchmark.run().3) Config objects
ReportConfig:output_dir: output directory root.include_yaml: enable YAML output.include_pdf: enable PDF output.plot_tallies: optional list of tallies to plot.verbosity: controls level of detail for plots/sections.ResultSource:name: display name.kind: typicallyexperiment(reference) orcalculation(candidate).results: aBenchmarkResultsinstance.tally_names: optional list of tallies to include.Workflow details
Build report data
build_report()collects:Render outputs
render_yaml()writes a machine-readable report summary.render_pdf()composes a full PDF report:Validation quality plots (verbosity-driven)
A dedicated "Quality evaluation" section is added with per-point metrics. Metrics included depend on verbosity:
Each plot includes the mathematical expression and a short description of the metric.
Observable summary charts
A dedicated "Observable summary" page aggregates per-tally metrics into bar charts. Metrics depend on verbosity:
Notes
benchmark_results.h5and reference results fromexperiment.h5if available.