-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I want to run source-reconstruction on the mni template using rhino. Despite use_headshape=False, use_nose=False
, I still got a FileNotFoundError on polhemus_headshape.txt.
In this regard I think I have found a potential bug in coreg.py as loading the Polhemus files is not contained within if use_headshape:
osl-ephys/osl_ephys/source_recon/rhino/coreg.py
Lines 198 to 219 in 548b7de
if use_headshape: | |
if use_nose: | |
log_or_print("The MRI-derived nose is going to be used to aid coreg.") | |
log_or_print("Please ensure that rhino.compute_surfaces was run with include_nose=True.") | |
log_or_print("Please ensure that the polhemus headshape points include the nose.") | |
else: | |
log_or_print("The MRI-derived nose is not going to be used to aid coreg.") | |
log_or_print("Please ensure that the polhemus headshape points do not include the nose") | |
# Load in the "polhemus-derived fiducial points" | |
log_or_print(f"loading: {filenames['polhemus_headshape_file']}") | |
polhemus_headshape_polhemus = np.loadtxt(filenames["polhemus_headshape_file"]) | |
log_or_print(f"loading: {filenames['polhemus_nasion_file']}") | |
polhemus_nasion_polhemus = np.loadtxt(filenames["polhemus_nasion_file"]) | |
log_or_print(f"loading: {filenames['polhemus_rpa_file']}") | |
polhemus_rpa_polhemus = np.loadtxt(filenames["polhemus_rpa_file"]) | |
log_or_print(f"loading: {filenames['polhemus_lpa_file']}") | |
polhemus_lpa_polhemus = np.loadtxt(filenames["polhemus_lpa_file"]) | |
Indenting the lines seems to work as indicated by Using known MNI fiducials
.
Nevertheless, I subsequently get stuck at
mni_mri_t = read_trans(surfaces_filenames["mni_mri_t_file"]) |
as [...]/rhino/surfaces/mni_mri-trans.fif does not exist in the subject folder (or anywhere else for that matter). Any advice on how to obtain this or how to circumvent this issue would be very much appreciated.
Metadata
Metadata
Assignees
Labels
No labels