sccn / EEG-BIDS

21 stars 17 forks source link

add nan check for electrodes.tsv #83

Closed cll008 closed 2 years ago

cll008 commented 3 years ago

fixes #81. write "N/A" to electrodes.tsv if coordinates isnan

cll008 commented 3 years ago

Only checks the X coordinate but the argument is the same for isempty so should not cause problems.

Tested on an abbreviated ds002893 (2 subjects from Auditory-Visual Shift Study) which has custom elocs.

  1. Changed sub-01 chan1 x y z fields to nan
  2. EEG(1).saved = 'no' and save dataset
  3. Export BIDS
  4. Confirm electrodes.tsv that nan channel is recorded as n/a