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
{{ message }}
Repository navigation
clean_channels / clean_channels_nolocs / clean_windows: return the measured criteria, not only the result #535
clean_channels returns only the dataset; the caller cannot tell which channels were removed except by comparing
labels or reading EEG["etc"]["clean_channel_mask"], and cannot tell which criterion (correlation or noise) fired.
clean_channels_nolocs returns (EEG, removed) while clean_channels returns EEG only.
clean_windows returns the sample mask but not the per-window z-scores, the window offsets or how many channels
exceeded the threshold in each window.
Expected: the same return shape for the two channel functions, and the measured quantities available (for example in EEG["etc"]["clean_channels"] and EEG["etc"]["clean_windows"], or as an optional second return value): per-channel
correlation to the RANSAC estimate (or best pairwise correlation), per-channel noise z-score, number of flagged windows
per channel, and per-window z-scores with their start samples. Defaults unchanged.
One more case for the same request, in clean_flatlines.
When every channel has a flat-line portion it removes nothing, says so only through the logger, and returns the dataset unchanged with no mask in etc.
A caller that annotates cannot tell "nothing was flat" from "everything was flat".
WARNING (eegprep.plugins.clean_rawdata.clean_flatlines) All channels have a flat-line portion; not removing anything.
4 []
Expected: the flagged channels are available to the caller whether or not any is removed, for example EEG["etc"]["clean_channel_mask"] written on every call, or the mask returned as a second value like clean_windows does.
Activity
neuromechanist commentedon Nov 5, 2026
One more case for the same request, in
clean_flatlines.When every channel has a flat-line portion it removes nothing, says so only through the logger, and returns the dataset unchanged with no mask in
etc.A caller that annotates cannot tell "nothing was flat" from "everything was flat".
Observed on eegprep 0.5.0:
Expected: the flagged channels are available to the caller whether or not any is removed, for example
EEG["etc"]["clean_channel_mask"]written on every call, or the mask returned as a second value likeclean_windowsdoes.