You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add a non-defaulting, boolean parameter dig_is_template where users MUST indicate in MNE-BIDS, whether the raw object they are passing to write_raw_bids contains template or true data
if dig_is_template == True ... we do NOT write electrodes.tsv and coordsystem.json
else ... we write it as Neuromag/Elekta coordinates (="head") if available
if "head" is not available, we do not write
within write_raw_bids, and IF dig_is_template ==False ... make a check to see if raw.info['dig'] fits on a sphere
if it does, that's an indication, that we have template data ... so put out a warning
In any case, we ALWAYS write our position data in "Elekta/Neuromag" coordinate frame (="head" in mne-python)
it might be possible that the raw data file had some digitization / position data inherently saved in the raw data format --> and that this data was not in the "head" coordinate frame
in that case --- we have to live with the fact that there are two different representations of the same digitization data (one in the raw data files, one in electrodes.tsv ... but most likely both in different coordinate frames)
however, this case should be rare in EEG data (only in .set/.fdt and potentially .vhdr/.vmrk/.eeg)
The text was updated successfully, but these errors were encountered:
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
)The text was updated successfully, but these errors were encountered: