Back to the main page.

Bug 2679 - ft_read_sens cannot cope with datasets containing both EEG and MEG

Status CLOSED FIXED
Reported 2014-08-29 09:27:00 +0200
Modified 2019-08-10 12:40:41 +0200
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: Other
Operating System: Linux
Importance: P5 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks: 2684
See also:

Stephen Whitmarsh - 2014-08-29 09:27:48 +0200

When both EEG and MEG sensors are detected read_sens only outputs EEG: Warning: both electrode and gradiometer information is present, returning the electrode information > In ft_read_sens at 168 Would it be possible to somehow flag either EEG or MEG sensors, or perhaps nicer, when two output arguments are given, output both? Cheers, Stephen


Robert Oostenveld - 2014-08-29 15:10:41 +0200

Ft_read-_sens has the option senstype, which can be EEG or MEG. It is not documented.


Jan-Mathijs Schoffelen - 2014-09-10 14:02:04 +0200

this is relevant in light of the stockholm workshop. at the moment a lot of code excludes the presence of both an elec and grad field (so it does not only pertain to ft_read_sens), because it's often like this: if isfield(data, 'elec') elseif isfield(data, 'grad') end However, sometimes having both an elec and grad field makes sense. (e.g in neuromag data). First thing to do would be to inventorize where these instances occur. One obvious place would e.g. be ft_appenddata, where it should be possible to append meg with eeg data.


Robert Oostenveld - 2017-04-21 10:16:15 +0200

This was already working for quite some time for Elekta fif datasets. Earlier this week I also implemented it for CTF datasets.


Robert Oostenveld - 2019-08-10 12:34:31 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue on https://github.com/fieldtrip/fieldtrip/issues.


Robert Oostenveld - 2019-08-10 12:40:41 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue on https://github.com/fieldtrip/fieldtrip/issues.