mne.set_config

mne.set_config(key, value, home_dir=None, set_env=None)

Set mne-python preference in config

Parameters:

key : str | None

The preference key to set. If None, a tuple of the valid keys is returned, and value and home_dir are ignored.

value : str | None

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

home_dir : str | None

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

set_env : bool

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

See also

get_config

Examples using mne.set_config