3.1.15.2.6. waf_tools.config_codegen_task.CreateCsvFile

class waf_tools.config_codegen_task.CreateCsvFile(*k, **kw)

Bases: Task

Waf task that generates a documentation CSV file from a JSON configuration.

Depending on the input file, either the diagnosis entries (diag_array_cfg.json) or the configuration defines (battery cell and battery system configuration) are rendered into a semicolon-separated CSV file for inclusion in the Sphinx documentation.

file_cfg

The entry of the configuration’s files list that is rendered by this task.

Type:

dict

render_battery_cfg_csv() → str

Render the CSV content for a battery configuration.

Creates one row per define, mapping the description to the corresponding define name.

Returns:

The CSV content as a string, including the header row.

render_diag_array_cfg_csv() → str

Render the CSV content for the diagnosis configuration.

Creates one row per entry of array_entries, mapping the diagnosis event to its description.

Returns:

The CSV content as a string, including the header row.