Skip to content

Commit

Permalink
Update pop_icflag.m
Browse files Browse the repository at this point in the history
Clarify some language so that users know they still need to reject the components after they've been flagged, minor spelling and more clarity elsewhere, too
  • Loading branch information
rgougelet authored Aug 8, 2020
1 parent bd7c598 commit c454929
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pop_icflag.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
classification = EEG(1).etc.ic_classification.ICLabel.classifications;
if isempty(classification), err; end
catch
disp('No labelling found, abording...')
disp('No labeling found, use Tools > Classify components using ICLabel > Label components first')
return;
end

Expand All @@ -49,7 +49,7 @@

geom = [2 0.4 0.4];
row = { { 'style' 'text' 'string' 'Probability range for ' } { 'style' 'edit' 'string' '' } { 'style' 'edit' 'string' '' } };
allRows = { { 'style' 'text' 'string' 'Select range for flaging component for rejection' 'fontweight' 'bold' } {} { 'style' 'text' 'string' 'Min' } { 'style' 'text' 'string' 'Max' } };
allRows = { { 'style' 'text' 'string' 'Select range for flagging component for rejection' 'fontweight' 'bold' } {} { 'style' 'text' 'string' 'Min' } { 'style' 'text' 'string' 'Max' } };
allGeom = { 1 geom };
for iCat = 1:length(cat)
tmpRow = row;
Expand Down Expand Up @@ -82,7 +82,7 @@
flagReject = flagReject | tmpReject;
end
EEG.reject.gcompreject = flagReject;
fprintf('%d components rejected\n', sum(flagReject));
fprintf('%d components flagged for rejection, to reject them use Tools > Remove components from data\n', sum(flagReject));
com = sprintf('EEG = pop_icflag(EEG, %s);',vararg2str(thresh));
end

0 comments on commit c454929

Please sign in to comment.