CSV I/O
- class rtctools.simulation.csv_mixin.CSVMixin(**kwargs)[source]
Bases:
IOMixinAdds reading and writing of CSV timeseries and parameters to your simulation problem.
During preprocessing, files named
timeseries_import.csv,initial_state.csv, andparameters.csvare read from theinputsubfolder.During postprocessing, a file named
timeseries_export.csvis written to theoutputsubfolder.- Variables:
csv_delimiter – Column delimiter used in CSV files. Default is
,.csv_validate_timeseries – Check consistency of timeseries. Default is
True.
- timeseries_at(variable, t)
Return the value of a time series at the given time.
- Parameters:
variable – Variable name.
t – Time.
- Returns:
The interpolated value of the time series.
- Raises:
KeyError