I am in the process of trying to perform coregistration, and I seem to be running into an error. I know that coreg looks for three files (head.fif, lh.seghead, and lh.smseghead). I have done the MRI reconstruction (FreeSurfer) and do not have these files. However, I understand that they can be generated using mne.bem.make_scalp_surfaces.
When I try to use this function (mne.bem.make_scalp_surfaces(‘sample’,subjects_dir=subjects_dir)), I run into an error (subjdir: undefined variable). I am wondering if there is some function/output I am supposed to run/generate before running make_scalp_surfaces, or if I just have some kind of syntax error leading to the undefined variable.
MNE Python version 0.24.0
OS: macOS Monterey v12.0.1