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
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.
#### 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
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
#### Actual behavior: EEC.chanlocs.type is empty
#### Versions
The text was updated successfully, but these errors were encountered: