updated NKI on OSF
@@ -42,10 +42,9 @@ BIDS_EXAMPLES = {
# Map names of templates to OSF_RESOURCES keys
TEMPLATE_MAP = {
- 'fMRIPrep': 'fMRIPrep',
'MNI152NLin2009cAsym': 'MNI152NLin2009cAsym',
'OASIS': 'OASIS30ANTs',
- 'NKI': 'ants_nki_template_ras',
+ 'NKI': 'NKI',
}
@@ -70,6 +69,10 @@ def get_template(template_name, data_dir=None, url=None, resume=True, verbose=1)
"""Download and load a template"""
if template_name.startswith('tpl-'):
template_name = template_name[4:]
+
+ # An aliasing mechanism. Please avoid
+ if template_name in TEMPLATE_MAP:
+ template_name = TEMPLATE_MAP[template_name]
return get_dataset(template_name, dataset_prefix='tpl-', data_dir=data_dir,
url=url, resume=resume, verbose=verbose)
