Skip to content

Commit 2cfa242

Browse files
committed
api: force users to explicitly define whether to sort files
1 parent c4d1d8a commit 2cfa242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ class DataGrabberInputSpec(DynamicTraitedSpec, BaseInterfaceInputSpec): # Inter
356356
desc='Path to the base directory consisting of subject data.')
357357
raise_on_empty = traits.Bool(True, usedefault=True,
358358
desc='Generate exception if list is empty for a given field')
359-
sort_filelist = traits.Bool(False, usedefault=True,
359+
sort_filelist = traits.Bool(mandatory=True,
360360
desc='Sort the filelist that matches the template')
361361
template = traits.Str(mandatory=True,
362362
desc='Layout used to get files. relative to base directory if defined')

0 commit comments

Comments
 (0)