Skip to content

Commit d9ebe4d

Browse files
authored
Merge pull request #2117 from satra/fix/fssource
fix: retrieve aseg and wmparc stats properly
2 parents d843794 + da639a6 commit d9ebe4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,13 +1615,13 @@ def _get_files(self, path, key, dirval, altkey=None):
16151615
globprefix = self.inputs.hemi + '.'
16161616
else:
16171617
globprefix = '?h.'
1618+
if key in ('aseg_stats', 'wmparc_stats'):
1619+
globprefix = ''
16181620
elif key == 'ribbon':
16191621
if self.inputs.hemi != 'both':
16201622
globprefix = self.inputs.hemi + '.'
16211623
else:
16221624
globprefix = '*'
1623-
elif key in ('aseg_stats', 'wmparc_stats'):
1624-
globprefix = ''
16251625
keys = filename_to_list(altkey) if altkey else [key]
16261626
globfmt = os.path.join(path, dirval,
16271627
''.join((globprefix, '{}', globsuffix)))

0 commit comments

Comments
 (0)