NeilwBailey / RELAX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in RELAX_drift

izzycourtney26 opened this issue · comments

Hello,

I'm currently trying to implement RELAX to process data from a go-nogo experiment. RELAX ran for 60 out of 70 of the data files, but for the other 10, this error keeps happening:

Attempt to grow array along ambiguous dimension.

Error in RELAX_drift (line 145)
CumulativeExceedsUpperBoundPerEpoch(1,e)=NaN;

Error in RELAX_Wrapper_beta (line 425)
[continuousEEG, epochedEEG] = RELAX_drift(continuousEEG, epochedEEG, RELAX_cfg); %
Use epoched data to add periods showing excessive drift to the mask

Error in pop_RELAX_beta (line 600)
RELAXProcessing_ICA_AllParticipants, RELAXProcessingRoundThreeAllParticipants,
RELAX_issues_to_check, RELAXProcessingExtremeRejectionsAllParticipants] =
RELAX_Wrapper_beta (RELAX_cfg);

All of our data is pretty noisy, including the ones that RELAX crashed on, but they don't seem that much noisier than the others. Any advice would be much appreciated!

Thanks! I stepped through the RELAX_Wrapper function and saw that for those subjects, after the call to RELAX_epoching in line 393, the size of epochedEEG.RELAX.EpochsMarkedAsNaNsForExtremeEvents was bigger than the number of epochs in epochedEEG. I was able to resolve the issue by setting OnlyIncludeTaskRelatedEpochs to 0 instead of 1.

Great to hear you were able to resolve the issue, thank you for letting me know.