eeglab
eeglab copied to clipboard
pop_fileio update no longer imports channel type from fieldtrip data structure
Description
Using pop_fileio to import fieldtrip data previously successfully imported channel type info. After recently updating from 2022.1 -> 2024 EEGlab the channel types are no longer imported.
#### Steps to Reproduce
%%OUTEEG = pop_fileio( header, dat, evt ); EEG = pop_fileio(ephys_data.hdr,ephys_data.trial{1},event);
#### Expected behavior: EEG.chanlocs.type to include channels types from ephys_data.chantype
This used to occur in 2022.1 with the following code that appears to have been removed from 2024.0 version % channel type if isfield(dat,'chantype') for ichan = 1:length(dat.chantype) EEG.chanlocs(ichan).type = dat.chantype{ichan}; end end
% START ----------- Extracting EEG channel location
#### Actual behavior: EEC.chanlocs.type is empty
#### Versions
| OS version | Windows 10 |
| Matlab version | 9.14.0.2206163 (R2023a) |
| EEGLAB version | 2024.0 |