Csv Reader Master
Module name: CsvReaderMaster
Package: CEAMSModules 7.4.0
Version: 2.0.0
Overview
Read events from a CSV file. All index starts at 1.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
List of string |
— |
The files to read |
|
string |
t |
The file separator as ‘t’ or ‘,’. |
|
integer |
1 |
The column index of the group |
|
integer |
2 |
The column index of the event names |
|
integer |
3 |
The column index of the onset of the events |
|
integer |
4 |
The column index of the duration of the events |
|
integer |
5 |
The column index of the channel of the events |
|
— |
256 |
See module settings for configuration details. |
|
Bool |
1 |
If 1, the content of the column are in time (s)
if 0, the content are in samples
|
|
Bool |
0 |
If 1, the content of the onset is the event center
if 0, the content of the onset is the event onset
|
|
float |
— |
Valide only when duration_col_i==0. The fixed duration of all the events. |
|
bool |
0 |
True to output the header of the event passed in parameters. False to
ouput a default header (columns=[‘group’,’name’,’start_sec’,’duration_sec’,’channels’])
|
Outputs
Output |
Format |
Description |
|---|---|---|
|
Pandas DataFrame |
List of events (columns=[‘group’,’name’,’start_sec’,’duration_sec’,’channels’])
OR list of events with personalized columns
|
|
String |
Last filename read (or current filename) |
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find Csv Reader Master under the Files I/O category.
Drag the module onto the process canvas.
Connect the required inputs from upstream modules (or set values in the Settings tab).
Connect outputs to downstream modules as needed.
Double-click the module to configure parameters in the Settings tab.
Run the process and inspect results in the Results tab.
Note
For general guidance on building processes with modules, see Explore examples.