mne.set_config#

mne.set_config(key, value, home_dir=None, set_env=True)[source]#

Set a MNE-Python preference key in the config file and environment.

Parameters
keystr

The preference key to set.

valuestr | None

The value to assign to the preference key. If None, the key is deleted.

home_dirstr | None

The folder that contains the .mne config folder. If None, it is found automatically.

set_envbool

If True (default), update os.environ in addition to updating the MNE-Python config file.

See also

get_config

Examples using mne.set_config#

Configuring MNE-Python

Configuring MNE-Python

Configuring MNE-Python