-
Notifications
You must be signed in to change notification settings - Fork 35
Description
I think the functions to find noisy channels could benefit from a reject_by_annotation
parameter, as used in MNE-Python.
It would mean that before working on the continuous raw data, raw.annotations
are checked for any annotations starting with BAD
, and cutting out these segments from the raw data.
This would be helpful for cases where you have raw data with long block breaks in which the participant moved etc. --> such "break" segments are not diagnostic for how noisy channels are, and could potentially even screw up the overall stats.
WDYT @a-hurst @yjmantilla ?
EDIT: The reject_by_annotation
code in MNE happens at the raw.get_data
level, see: https://github.com/mne-tools/mne-python/blob/c3ff05c05c7bfcf765249f27a517803f27f48b4e/mne/io/base.py#L918-L941