Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pop_fileio update no longer imports channel type from fieldtrip data structure #800

Open
kacross opened this issue Aug 22, 2024 · 0 comments

Comments

@kacross
Copy link

kacross commented Aug 22, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant