swifco_rs.reporters.time_series module

swifco_rs.reporters.time_series.callback(observer, callback)

Passes time series rows and headers back to a Python callback

Parameters:

observer - a time series observer to get data from the model

callback - a Python function with two parameters (header, row) to pass a time series row back to Python. header is a tuple of strings, row is a tuple of numbers

swifco_rs.reporters.time_series.csv_writer(observer, path, sep=';')

Write CSV files of time series

Parameters:

observer - a time series 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