swifco_rs.reporters.events module¶
- swifco_rs.reporters.events.callback(observer, callback)¶
Passes event rows and headers back to a Python callback
Parameters:
observer - an events observer to get data from the model
callback - a Python function with two parameters (header, row) to pass an event back to Python.
header
is a tuple of strings,row
is a tuple of numbers
- swifco_rs.reporters.events.csv_writer(observer, path, sep=';')¶
Write CSV files of event lists
Parameters:
observer - an events observer to get data from the model
path - path for the output CSV file
sep - column separator
append - optional pair of key column name and value to append rows to an existing CSV file