CSVEventLoaderOptions
CSVEventLoaderOptions
Options for loading DigitalEventSeries data from a CSV file. The CSV can have a single column with event timestamps, or multiple columns where one column contains timestamps and another contains identifiers.
#include <Digital_Event_Series_CSV.hpp>
Public Attributes
| Name | |
|---|---|
| std::string | filepath |
| std::string | delimiter |
| bool | has_header |
| int | event_column |
| int | identifier_column |
| std::string | base_name |
| float | scale |
| bool | scale_divide If true, divide by scale instead of multiplying. |
Public Attributes Documentation
variable filepath
std::string filepath;The path to the CSV file to load.
variable delimiter
std::string delimiter = ",";The delimiter used between columns. Defaults to “,”.
variable has_header
bool has_header = false;Whether the file has a header row that should be skipped. Defaults to false.
variable event_column
int event_column = 0;The column index (0-based) for the event timestamp values. Defaults to 0.
variable identifier_column
int identifier_column = -1;The column index (0-based) for the identifier values. Set to -1 if no identifier column. Defaults to -1.
variable base_name
std::string base_name = "events";The base name for the data. If identifier_column is specified, series will be named base_name + “_” + identifier. If no identifier column, the single series will be named base_name. Defaults to “events”.
variable scale
float scale = 1.0f;Scale factor to apply to timestamps. Applied BEFORE conversion to integer. For example, if timestamps are in seconds and you want sample indices at 30kHz, set scale=30000. The timestamp 0.01493 becomes 0.01493 * 30000 = 447.9 → 448.
variable scale_divide
bool scale_divide = false;If true, divide by scale instead of multiplying.
Updated on 2026-11-13 at 20:25:39 +0000