The Sparta Modeling Framework
|
This page describes the various output formats of a sparta report
For an up-to-date list, run a Sparta simulator with the flag: --help-topic reporting
The report output format is typically controlled in one of two ways: directly on the command line or within a report definition Report Definition Format (.rrep,.yaml).
Generate a report in text form using the command line:
Use the report definition file to define the format:
sparta::report::format::Text
Writes report output as plain-text output. This is human readable and regex-parsable.
sparta::report::format::CSV
Writes report output as comma-separated values with 1 or 2 header rows and then 1 or more data rows depending on whether periodic data was collected (see 3.2 Report Generation).
Consider plotting with sparta/tools/plot_csv_report.py
sparta::report::format::BasicHTML
Writes report output a hierarchical HTML page with nested tables. This format respects many report style options.
sparta::report::format::Gnuplot
Writes report output in a format suitable for gnuplot
sparta::report::format::PythonDict
Writes report output in a Python dictionary format. This is a string representation of a dictionary which can be read as a multi-line string from the file and "eval"ed to load. Alternatively, it can be copied into python code.
sparta::report::format::JavascriptObject
Writes report output in the JSON format which can be read by a number of libraries.