Skip to content

Commit a10963c

Browse files
authored
Merge pull request #2746 from miykael/fsl_split_correction
FIX: Refine FSL.split output identification
2 parents 1ff366c + 7429309 commit a10963c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/fsl/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,9 @@ def _list_outputs(self):
551551
"""
552552
outputs = self._outputs().get()
553553
ext = Info.output_type_to_ext(self.inputs.output_type)
554-
outbase = 'vol*'
554+
outbase = 'vol[0-9]*'
555555
if isdefined(self.inputs.out_base_name):
556-
outbase = '%s*' % self.inputs.out_base_name
556+
outbase = '%s[0-9]*' % self.inputs.out_base_name
557557
outputs['out_files'] = sorted(
558558
glob(os.path.join(os.getcwd(), outbase + ext)))
559559
return outputs

0 commit comments

Comments
 (0)