CustomWriter

class cvpack.reporting.CustomWriter(*args, **kwargs)[source]

An abstract class for StateDataReporter writers

A writer may also define initialize(simulation), which is called once before the first report and can be used to perform any necessary setup.

Methods

getHeaders()[source]

Gets a list of strings containing the headers to be added to the report.

Return type:

list[str]

getValues(simulation)[source]

Gets a list of floats containing the values to be added to the report.

Parameters:

simulation (Simulation) – The simulation object.

Return type:

list[float]