Skip to content

Commit f684a35

Browse files
authored
Merge pull request #72 from rmarkello/fix/plot_fsaverage
[FIX] Better path finding in nnplot.plot_fsaverage()
2 parents 7d7b022 + 26c4e38 commit f684a35

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,6 @@
118118
'reference_url': {
119119
'netneurotools': None
120120
},
121-
'thumbnail_size': (250, 250)
121+
'thumbnail_size': (250, 250),
122+
'ignore_pattern': r'/wip.*\.py',
122123
}

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)