eegprep.clean_flatlines#
- eegprep.clean_flatlines(EEG, max_flatline_duration=5.0, max_allowed_jitter=20.0)#
Remove (near-) flat-lined channels.
This is an automated artifact rejection function which ensures that the data contains no flat-lined channels.
- Parameters:
EEG (
Dict[str,Any]) – the continuous-time EEG data structuremax_flatline_duration (
float) – maximum tolerated flatline duration. In seconds. If a channel has a longer flatline than this, it will be considered abnormal.max_allowed_jitter (
float) – maximum tolerated jitter during flatlines. As a multiple of epsilon.
Returns#
EEG : the EEG data structure with flatlined channels removed.
Example
EEG = clean_flatlines(EEG)