Skip to content

Commit

Permalink
fix data rejection warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
arnodelorme committed May 17, 2024
1 parent 1f069b1 commit 02a306c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion functions/popfunc/pop_rmdat.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
com = '';
if nargin < 4
invertsel = 1;
warning('This function behavior has been fixed and data is removed by default')
warning('In EEGLAB < 2023.0, the function kept instead of removed the selected segments (now fixed)')
end
if isempty(EEG(1).event)
error( [ 'No event. This function removes data' 10 'based on event latencies' ]);
Expand Down
4 changes: 2 additions & 2 deletions functions/sigprocfunc/eegrej.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
% generate boundaries latencies
% -----------------------------
boundevents = regions(:,1)-1;
for iRegion1=1:size(regions,1)
for iRegion1 = 1:size(regions,1)
duration(iRegion1) = regions(iRegion1,2)-regions(iRegion1,1)+1;

% add nested boundary events
Expand All @@ -136,7 +136,7 @@
% end
end

for iRegion2=iRegion1+1:size(regions)
for iRegion2 = iRegion1+1:size(regions,1)
boundevents(iRegion2) = boundevents(iRegion2) - (regions(iRegion1,2)-regions(iRegion1,1)+1);
end
end
Expand Down

0 comments on commit 02a306c

Please sign in to comment.