bemobil_mne.preproc.get_raw_subset#

bemobil_mne.preproc.get_raw_subset(raw, subset_chs=None)[source]#

Return a copy of raw containing only the requested subset of channels.

Parameters:
rawmne.io.BaseRaw

Source recording.

subset_chslist of str | None

Channel names to keep. Defaults to SUBSET_CHANNELS (frontal channels of the equidistant cap).

Returns:
mne.io.Raw | None

Copy of raw with only the available subset channels, or None if none of the requested channels are present.