lw_pipeline.helper.mne.find_chs#
- lw_pipeline.helper.mne.find_chs(identifiers, ch_names, return_identifiers=False, error_level='ignore')[source]#
Find actual channel names by identifiers (e.g. Fp1 for “EEG Fp1”).
- Parameters:
identifiers (list of str) – The identifiers to search for (e.g. [“Fp1”, “Fp2”]).
ch_names (list of str) – The list of channel names to search in.
return_identifiers (bool) – Whether to return the identifiers of found channels.
error_level (str) – The error level to use if a channel is not found. Can be “ignore”, “warn”, or “raise”.
- Returns:
ch_names – The actual channel names if found, else None.
- Return type:
list of str | None