Skip to content

Commit

Permalink
Limit file collection to specified subject.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Sep 23, 2024
1 parent df73880 commit 4353d55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/fmripost_aroma/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,16 @@ def init_single_subject_wf(subject_id: str):
### References
"""
entities = config.execution.bids_filters.copy()
entities['subject'] = subject_id

if config.execution.derivatives:
# Raw dataset + derivatives dataset
config.loggers.workflow.info('Raw+derivatives workflow mode enabled')
subject_data = collect_derivatives(
raw_dataset=config.execution.layout,
derivatives_dataset=None,
entities=config.execution.bids_filters,
entities=entities,
fieldmap_id=None,
allow_multiple=True,
spaces=None,
Expand All @@ -192,7 +194,7 @@ def init_single_subject_wf(subject_id: str):
subject_data = collect_derivatives(
raw_dataset=None,
derivatives_dataset=config.execution.layout,
entities=config.execution.bids_filters,
entities=entities,
fieldmap_id=None,
allow_multiple=True,
spaces=None,
Expand Down

0 comments on commit 4353d55

Please sign in to comment.