Skip to content

Commit d418405

Browse files
committed
doc: use different file for getting by density
1 parent cb81435 commit d418405

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

templateflow/api.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ def get(template, **kwargs):
2121
Index to an specific spatial resolution of the template.
2222
suffix : str or None
2323
BIDS suffix
24-
atlas : str
24+
atlas : str or None
2525
Name of a particular atlas
26-
hemi : str
26+
hemi : str or None
2727
Hemisphere
28-
space : str
28+
space : str or None
2929
Space template is mapped to
30-
density : str
30+
density : str or None
3131
Surface density
32-
desc : str
32+
desc : str or None
3333
Description field
3434
3535
Examples
@@ -45,9 +45,9 @@ def get(template, **kwargs):
4545
['.../tpl-MNI152Lin/tpl-MNI152Lin_res-01_T1w.nii.gz',
4646
'.../tpl-MNI152Lin/tpl-MNI152Lin_res-02_T1w.nii.gz']
4747
48-
>>> str(get('fsLR', space='fsaverage', suffix='sphere',
49-
... hemi='L', density='32k')) # doctest: +ELLIPSIS
50-
'.../tpl-fsLR_space-fsaverage_hemi-L_den-32k_sphere.surf.gii'
48+
>>> str(get('fsLR', space=None, hemi='L',
49+
... density='32k', suffix='sphere')) # doctest: +ELLIPSIS
50+
'.../tpl-fsLR_hemi-L_den-32k_sphere.surf.gii'
5151
5252
"""
5353
out_file = [Path(p) for p in TF_LAYOUT.get(

0 commit comments

Comments
 (0)