Skip to content

Commit

Permalink
Merge pull request #1788 from effigies/fix/ignore_sourcedata_etc
Browse files Browse the repository at this point in the history
FIX: Ignore sourcedata and derivatives when fetching data
  • Loading branch information
effigies committed Sep 26, 2019
2 parents cc49139 + 7081a7c commit 17e9732
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fmriprep/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"""

import os
import re
from pathlib import Path
import logging
import sys
Expand Down Expand Up @@ -544,7 +545,9 @@ def build_workflow(opts, retval):
retval['run_uuid'] = run_uuid

# First check that bids_dir looks like a BIDS folder
layout = BIDSLayout(str(bids_dir), validate=False)
layout = BIDSLayout(str(bids_dir), validate=False,
ignore=("code", "stimuli", "sourcedata", "models",
"derivatives", re.compile(r'^\.')))
subject_list = collect_participants(
layout, participant_label=opts.participant_label)
retval['subject_list'] = subject_list
Expand Down

0 comments on commit 17e9732

Please sign in to comment.