Skip to content

Commit

Permalink
Address style issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Dec 9, 2024
1 parent 953f4b8 commit db4ec3a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qsiprep/utils/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,11 @@ def collect_data(bids_dir, participant_label, session_id=None, filters=None, bid
}
bids_filters = filters or {}
for acq, entities in bids_filters.items():
if 'session' in queries[acq]:
config.loggers.workflow.warning('BIDS filter file value for session may conflict with values specified on the command line')
if ('session' in queries[acq]) and (session_id is not None):
config.loggers.workflow.warning(
'BIDS filter file value for session may conflict with values specified '
'on the command line'
)
queries[acq]['session'] = session_id or Query.OPTIONAL
queries[acq].update(entities)

Expand Down

0 comments on commit db4ec3a

Please sign in to comment.