mne.write_forward_solution#
- mne.write_forward_solution(fname, fwd, overwrite=False, verbose=None)[source]#
Write forward solution to a file.
- Parameters
- fname
str
File name to save the forward solution to. It should end with
-fwd.fif
or-fwd.fif.gz
.- fwd
Forward
Forward solution.
- overwritebool
If True (default False), overwrite the destination file if it exists.
- verbosebool |
str
|int
|None
Control verbosity of the logging output. If
None
, use the default verbosity level. See the logging documentation andmne.verbose()
for details. Should only be passed as a keyword argument.
- fname
See also
Notes
Forward solutions, which are derived from an original forward solution with free orientation, are always stored on disk as forward solution with free orientation in X/Y/Z RAS coordinates. Transformations (surface orientation, fixed orientation) will be reverted. To reapply any transformation to the forward operator please apply
convert_forward_solution()
after reading the forward solution withread_forward_solution()
.Forward solutions, which are derived from an original forward solution with fixed orientation, are stored on disk as forward solution with fixed surface-based orientations. Please note that the transformation to surface-based, fixed orientation cannot be reverted after loading the forward solution with
read_forward_solution()
.
Examples using mne.write_forward_solution
#
Head model and forward computation