Open sappelhoff opened 4 years ago
so bottom line is we need a new param dig_is_template
and transform to head coordinates before writing to BIDS?
yes, and potentially checking if points fit on a sphere ... and IF they do, send a warning that we probably deal with template data
related to #89 and #263
In BIDS, we should not write template data, such as position/digitization data from electrodes.
In our last call @agramfort @jasmainak @massich and I agreed to deal with this in the following way:
dig_is_template
where users MUST indicate in MNE-BIDS, whether theraw
object they are passing towrite_raw_bids
contains template or true datadig_is_template == True
... we do NOT writeelectrodes.tsv
andcoordsystem.json
write_raw_bids
, and IFdig_is_template ==False
... make a check to see ifraw.info['dig']
fits on a sphereelectrodes.tsv
... but most likely both in different coordinate frames).set/.fdt
and potentially.vhdr/.vmrk/.eeg
)