mne.chpi.filter_chpi(raw, include_line=True, verbose=None)

Remove cHPI and line noise from data


This function will only work properly if cHPI was on during the recording.


raw : instance of Raw

Raw data with cHPI information. Must be preloaded. Operates in-place.

include_line : bool

If True, also filter line noise.

verbose : bool, str, int, or None

If not None, override default verbose level (see mne.verbose).


raw : instance of Raw

The raw data.


cHPI signals are in general not stationary, because head movements act like amplitude modulators on cHPI signals. Thus it is recommended to to use this procedure, which uses an iterative fitting method, to remove cHPI signals, as opposed to notch filtering.

New in version 0.12.