Skip to content

Commit b8eda2d

Browse files
committed
ENH: Add drop_blank_outputs input field
1 parent d573790 commit b8eda2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nipype/interfaces/io.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,10 @@ class DataGrabberInputSpec(DynamicTraitedSpec, BaseInterfaceInputSpec):
10441044
True,
10451045
usedefault=True,
10461046
desc='Generate exception if list is empty for a given field')
1047+
drop_blank_outputs = traits.Bool(
1048+
False, usedefault=True,
1049+
desc="Remove ``None`` entries from output lists"
1050+
)
10471051
sort_filelist = traits.Bool(
10481052
mandatory=True, desc='Sort the filelist that matches the template')
10491053
template = Str(

0 commit comments

Comments
 (0)