mne.rename_channels¶
- mne.rename_channels(info, mapping, allow_duplicates=False, verbose=None)[source]¶
Rename channels.
- Parameters
- info
dict Measurement info to modify.
- mapping
dict|callable() A dictionary mapping the old channel to a new channel name e.g. {‘EEG061’ : ‘EEG161’}. Can also be a callable function that takes and returns a string.
Changed in version 0.10.0: Support for a callable function.
- allow_duplicatesbool
If True (default False), allow duplicates, which will automatically be renamed with
-Nat the end.New in version 0.22.0.
- verbosebool,
str,int, orNone If not None, override default verbose level (see
mne.verbose()and Logging documentation for more). If used, it should be passed as a keyword-argument only.
- info