sccn / EEG-BIDS

21 stars 17 forks source link

Scan fields in event TSV files #104

Closed arnodelorme closed 2 years ago

arnodelorme commented 2 years ago

In line 70 of pop_importbids we have

type_fields = { 'value' 'trial_type' };

Change this line to read event fields from TSV files (exclude "sample", "onset", "response_time", "duration"). So for example, if in the events.tsv file, we have columns onset, sample, c1, c2, trial_type, c3, duration, response_time, the list would be { 'c1' 'c2' 'trial_type', 'c3' })

You could look at the function bids_gettaskfromfolder() which also scans the directory structure to find files.

dungscout96 commented 2 years ago

implemented in a3cde2a