Skip to content

Commit 02a306c

Browse files
committed
fix data rejection warning messages
1 parent 1f069b1 commit 02a306c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

functions/popfunc/pop_rmdat.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
com = '';
6565
if nargin < 4
6666
invertsel = 1;
67-
warning('This function behavior has been fixed and data is removed by default')
67+
warning('In EEGLAB < 2023.0, the function kept instead of removed the selected segments (now fixed)')
6868
end
6969
if isempty(EEG(1).event)
7070
error( [ 'No event. This function removes data' 10 'based on event latencies' ]);

functions/sigprocfunc/eegrej.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
% generate boundaries latencies
124124
% -----------------------------
125125
boundevents = regions(:,1)-1;
126-
for iRegion1=1:size(regions,1)
126+
for iRegion1 = 1:size(regions,1)
127127
duration(iRegion1) = regions(iRegion1,2)-regions(iRegion1,1)+1;
128128

129129
% add nested boundary events
@@ -136,7 +136,7 @@
136136
% end
137137
end
138138

139-
for iRegion2=iRegion1+1:size(regions)
139+
for iRegion2 = iRegion1+1:size(regions,1)
140140
boundevents(iRegion2) = boundevents(iRegion2) - (regions(iRegion1,2)-regions(iRegion1,1)+1);
141141
end
142142
end

0 commit comments

Comments
 (0)