Skip to content

Commit b9ac204

Browse files
committed
[FIX] Fix plot_fsaverage path finding
If FreeSurfer isn't installed will download requested surface to ~/nnt-data/tpl-fsaverage and use that, instead, but the paths weren't being set up correctly. This should resolve that issue
1 parent 7d7b022 commit b9ac204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netneurotools/plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def plot_fsaverage(data, *, lhannot, rhannot, order='LR', surf='pial',
387387
from .datasets import fetch_fsaverage
388388
from .datasets.utils import _get_data_dir
389389
fetch_fsaverage()
390-
subjects_dir = _get_data_dir()
390+
subjects_dir = os.path.join(_get_data_dir(), 'tpl-fsaverage')
391391
subject_id, subjects_dir = check_fs_subjid(subject, subjects_dir)
392392

393393
# cast data to float (required for NaNs)

0 commit comments

Comments
 (0)