Default Report¶
This module contains the definition of a simulation report. It has the definition of the DefaultReport that generates simulation reports in a table format using PrettyTable
Example
Creating a default report:
report = DefaultReport()
Saving an output:
report.add_output({model: model_output}, 1)
Generating report:
report.generate_report()
-
class
gsf.reports.report_generators.default_report.
DefaultReport
(event_bus: Optional[event_bus.bus.EventBus] = None)¶ Bases:
gsf.reports.core.base_report.BaseReport
Default Report
Creates a report table from the given outputs.
-
_get_results
(headers: Set[str], outputs: Dict[float, Dict[str, Any]]) → str¶ Creates an str by applying a table format
-