Skip to content

Commit 1efa6cd

Browse files
committed
ENH: Exclude non-"proper" BIDS subdirectories
1 parent 04cfa7a commit 1efa6cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2828,7 +2828,8 @@ def _run_interface(self, runtime):
28282828
return runtime
28292829

28302830
def _list_outputs(self):
2831-
layout = gb.BIDSLayout(self.inputs.base_dir)
2831+
layout = gb.BIDSLayout(self.inputs.base_dir,
2832+
exclude=['derivatives/', 'code/', 'sourcedata/'])
28322833

28332834
# If infield is not given nm input value, silently ignore
28342835
filters = {}

0 commit comments

Comments
 (0)