Skip to content

Commit c213cc2

Browse files
committed
BF: extend should get a complete item; ENH: search for MNI under (neuro)debian paths
1 parent 7007eb1 commit c213cc2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

nipy/labs/viz_tools/anat_cache.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,22 @@ def find_mni_template():
3939
pass
4040
possible_paths = [
4141
('', 'usr', 'share', 'fsl', 'data', 'standard', 'avg152T1_brain.nii.gz'),
42+
('', 'usr', 'share', 'data', 'fsl-mni152-templates', 'avg152T1_brain.nii.gz'),
4243
('', 'usr', 'local', 'share', 'fsl', 'data', 'standard', 'avg152T1_brain.nii.gz'),
4344
]
4445
if 'FSLDIR' in os.environ:
4546
fsl_path = os.environ['FSLDIR'].split(os.sep)
46-
fsl_path.extend('data', 'standard', 'avg152T1_brain.nii.gz')
47-
possible_paths.append()
47+
fsl_path.extend(('data', 'standard', 'avg152T1_brain.nii.gz'))
48+
possible_paths.append(fsl_path)
4849
for path in possible_paths:
4950
filename = os.sep.join((path))
5051
if os.path.exists(filename):
5152
return filename
52-
53+
5354

5455

5556
################################################################################
56-
# Caching of the MNI template.
57+
# Caching of the MNI template.
5758
################################################################################
5859

5960
class _AnatCache(object):

0 commit comments

Comments
 (0)