This documentation is for development version 0.18.dev0.

mne.use_coil_def

mne.use_coil_def(fname)[source]

Use a custom coil definition file.

Parameters:
fname : str

The filename of the coil definition file.

Returns:
context : contextmanager

The context for using the coil definition.

Notes

This is meant to be used a context manager such as:

>>> with use_coil_def(my_fname):  # doctest:+SKIP
...     make_forward_solution(...)

This allows using custom coil definitions with functions that require forward modeling.