mnefun.repeat_coreg¶
- mnefun.repeat_coreg(subject, subjects_dir=None, subjects_dir_old=None, overwrite=False, verbose=None)¶
Repeat a mne coreg warping of an MRI.
This is useful for example when bugs are fixed with
mne.scale_mri()
.Warning
This function should not be used when the parameters in
'MRI scaling parameters.cfg'
have been changed.- Parameters:
- subject
str
The subject name.
- subjects_dir
str
|None
The subjects directory where the redone subject should go. The template/surrogate MRI must also be in this directory.
- subjects_dir_old
str
|None
The subjects directory where the old subject is. Can be None to use
subjects_dir
.- overwritebool
If True (default False), overwrite an existing subject directory if it exists.
- verbose
str
|None
The verbose level to use.
- subject
- Returns:
- out_dir
str
The output subject directory.
- out_dir