mne.read_forward_solution

mne.read_forward_solution(fname, force_fixed=False, surf_ori=False, include=[], exclude=[], verbose=None)[source]

Read a forward solution a.k.a. lead field.

Parameters:

fname : string

The file name, which should end with -fwd.fif or -fwd.fif.gz.

force_fixed : bool, optional (default False)

Force fixed source orientation mode?

surf_ori : bool, optional (default False)

Use surface-based source coordinate system? Note that force_fixed=True implies surf_ori=True.

include : list, optional

List of names of channels to include. If empty all channels are included.

exclude : list, optional

List of names of channels to exclude. If empty include all channels.

verbose : bool, str, int, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more).

Returns:

fwd : instance of Forward

The forward solution.