sccn / clean_rawdata

Cleaning Raw EEG data
GNU General Public License v3.0
42 stars 17 forks source link

Problem adding back channels removed #44

Closed lpc1199 closed 1 year ago

lpc1199 commented 1 year ago

I am trying to do a bad trial rejection using the pop_clean_rawdata function with the following parameters:

  EEG_cortical_BT = pop_clean_rawdata(EEG_cortical, 'channels_ignore', {'HEOG', 'VEOG'},  'FlatlineCriterion','off',...
        'ChannelCriterion','off',...
        'LineNoiseCriterion','off',...
        'Highpass','off',...
        'BurstCriterion',20,...   
        'WindowCriterion',0.3,... 
        'BurstRejection','on',...
        'Distance','Euclidian',...
        'WindowCriterionTolerances',[-Inf 5]);

I want the function to not consider the EOG channels to do this, but for some reason that I can't figure out I get the following error:

Error using clean_artifacts (line 320) Issue with adding back channels removed. Send us your data.

Am I doing something wrong or do I have to do some previous step to avoid this error? Here is the Drive link to the signal I am currently using: https://drive.google.com/drive/folders/1LqJiUg7PxSzE_QKXlP8esi7Tl4D5teVC?usp=sharing

arnodelorme commented 1 year ago

This has been fixed in EEGLAB in https://github.com/sccn/eeglab/commit/1f3dbef35292bb767c3af3060527678f2f44c143 There was some issue with recomputing removed data from Boundary event latency and durations.