88
99def get (template , ** kwargs ):
1010 """
11- Fetch one file from one template
12-
11+ Fetch one file from one particular template.
12+
13+ Parameters
14+ ----------
15+ template : str
16+ A template identifier (e.g., ``MNI152NLin2009cAsym``).
17+
18+ Keyword Arguments
19+ -----------------
20+ resolution: int or None
21+ Index to an specific spatial resolution of the template.
22+ suffix : str or None
23+ BIDS suffix
24+ atlas : str
25+ Name of a particular atlas
26+ desc : str
27+ Description field
28+
29+ Examples
30+ --------
1331 >>> str(get('MNI152Lin', resolution=1, suffix='T1w')) # doctest: +ELLIPSIS
1432 '.../tpl-MNI152Lin/tpl-MNI152Lin_res-01_T1w.nii.gz'
1533
@@ -66,8 +84,21 @@ def get(template, **kwargs):
6684
6785def templates (** kwargs ):
6886 """
69- Returns a list of available templates
70-
87+ Returns a list of available templates.
88+
89+ Keyword Arguments
90+ -----------------
91+ resolution: int or None
92+ Index to an specific spatial resolution of the template.
93+ suffix : str or None
94+ BIDS suffix
95+ atlas : str
96+ Name of a particular atlas
97+ desc : str
98+ Description field
99+
100+ Examples
101+ --------
71102 >>> base = ['MNI152Lin', 'MNI152NLin2009cAsym', 'NKI', 'OASIS30ANTs']
72103 >>> tpls = templates()
73104 >>> all([t in tpls for t in base])
@@ -82,8 +113,15 @@ def templates(**kwargs):
82113
83114def get_metadata (template ):
84115 """
85- Fetch one file from one template
116+ Fetch one file from one template.
117+
118+ Parameters
119+ ----------
120+ template : str
121+ A template identifier (e.g., ``MNI152NLin2009cAsym``).
86122
123+ Examples
124+ --------
87125 >>> get_metadata('MNI152Lin')['Name']
88126 'Linear ICBM Average Brain (ICBM152) Stereotaxic Registration Model'
89127
0 commit comments