You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation of the toolbox says that only data till the last marked artefact is used for filter computation. But it does not seem to be the case. Mask generated has 0s in unmarked segments which is later used in creating the matrix of clean (artefact free) data. Hence, unmarked segments are treated as clean.
The text was updated successfully, but these errors were encountered:
Can you tell me how to reproduce this issue? Do you use mwf_getmask with EEGLAB to perform the manual marking? In that case, the code below should take care of replacing all segments after the last artifact segment with NaNs:
% set mask entries after last marked artifact to NaN
lastArtifactIdx = find(mask, 1, 'last');
mask(lastArtifactIdx+1:end) =NaN;
Note that in mwf_params.m, there is an option to specify how NaNs are treated. By default this is 'ignore', but if for some reason it is put on 'clean' then NaNs in the masked are treated as clean data.
It was my colleague who was having the issue. It seems the toolbox she downloaded did not have this portion. Strange. Now, she has cloned the repository and this code is present. No issue then.
The documentation of the toolbox says that only data till the last marked artefact is used for filter computation. But it does not seem to be the case. Mask generated has 0s in unmarked segments which is later used in creating the matrix of clean (artefact free) data. Hence, unmarked segments are treated as clean.
The text was updated successfully, but these errors were encountered: