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

Check if data is referenced to CAR #28

Closed
mscheltienne opened this issue Apr 27, 2022 · 1 comment
Closed

Check if data is referenced to CAR #28

mscheltienne opened this issue Apr 27, 2022 · 1 comment

Comments

@mscheltienne
Copy link

mscheltienne commented Apr 27, 2022

After some digging following: sccn/eeglab#462
This line checks if the dataset is referenced to a common average. But, the sample EEGLAB dataset field .ref is set to common, which is probably a CAR? And yet this is not captured by ~strcmp(EEG.ref, 'averef').

Same for a dataset outputted after a re-referencing with pop_reref (including the output of ([~, EEG] = evalc('pop_reref(EEG, [], ''exclude'', setdiff(1:EEG.nbchan, EEG.icachansind));');), the field .ref is set to 'average', which is again not captured by ~strcmp(EEG.ref, 'averef').

Is this a mistake and 3 different ways to denote a CAR ref?

@arnodelorme
Copy link
Contributor

Fixed

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

2 participants