pnpl.preprocessing.NotchFilter

pnpl.preprocessing.NotchFilter#

class pnpl.preprocessing.NotchFilter(step_name='notch', freqs=<factory>, picks='meg')[source]#

Apply notch filter to remove line noise.

Parameters:
  • freqs (List[float]) – Frequencies to notch out (default: [50, 100] Hz for Europe)

  • picks (Any) – Channels to filter, as accepted by mne.io.Raw.notch_filter() (default: "meg"; use "eeg" or "data" for EEG recordings)

  • step_name (str)

__init__(step_name='notch', freqs=<factory>, picks='meg')#
Parameters:
  • step_name (str)

  • freqs (List[float])

  • picks (Any)

Return type:

None

Methods

__init__([step_name, freqs, picks])

apply(raw, context)

Apply this preprocessing step to raw data.

Attributes

picks

step_name

freqs