Skip to content

Commit 17e9732

Browse files
authored
Merge pull request #1788 from effigies/fix/ignore_sourcedata_etc
FIX: Ignore sourcedata and derivatives when fetching data
2 parents cc49139 + 7081a7c commit 17e9732

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fmriprep/cli/run.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"""
88

99
import os
10+
import re
1011
from pathlib import Path
1112
import logging
1213
import sys
@@ -544,7 +545,9 @@ def build_workflow(opts, retval):
544545
retval['run_uuid'] = run_uuid
545546

546547
# First check that bids_dir looks like a BIDS folder
547-
layout = BIDSLayout(str(bids_dir), validate=False)
548+
layout = BIDSLayout(str(bids_dir), validate=False,
549+
ignore=("code", "stimuli", "sourcedata", "models",
550+
"derivatives", re.compile(r'^\.')))
548551
subject_list = collect_participants(
549552
layout, participant_label=opts.participant_label)
550553
retval['subject_list'] = subject_list

0 commit comments

Comments
 (0)