Major overhaul bids importer - #901
Conversation
…g, eye channels, and output status
| % Remove header/config rows if present | ||
| idx_header = strcmp(event_type, 'n/a') & ... | ||
| ~strcmp(string(marker_tsv_data_table.message), 'CS'); | ||
| idx_header = strcmp(event_type, 'n/a') & ~strcmp(string(marker_tsv_data_table.message), 'CS'); |
There was a problem hiding this comment.
The message does not necessarily contain CS. It is in our case, but this depends on the local setup between EyeLink and stimulus presentation software. Could you check what happens if this is not CS?
There was a problem hiding this comment.
About idx_header = strcmp(event_type, 'n/a') & ~strcmp(string(marker_tsv_data_table.message), 'CS'); this is only used to distinguish header/configuration rows from physioevents that correspond to a CS event in the behavioral events file, since both have event_type = 'n/a'.
In any case, we only import blink, saccade, and fixation events from physioevents. Therefore, if the message is not CS, that row would simply not be imported and would not affect the imported events.
Fixes #876.
Changes proposed in this pull request: