Skip to content

Commit

Permalink
support all sessions for analysis (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
bud42 authored Jul 12, 2024
1 parent 1fec8e6 commit 5459960
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dax/rcq/analysislauncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,11 +527,15 @@ def get_subject_inputs(self, spec, info, subject):

# First session only
sessions = [first['SESSION']]
else:
# Otherwise, find sessions matching types
elif 'types' in sess_spec:
# Find sessions matching types
sess_types = sess_spec['types'].split(',')
sessions = [x['SESSION'] for x in info['scans'] if x['SUBJECT'] == subject and x['SESSTYPE'] in sess_types]
sessions = list(set(sessions))
else:
# Use any and all sessions for this subject
sessions = [x['SESSION'] for x in info['scans'] if x['SUBJECT'] == subject]
sessions = list(set(sessions))

# Append inputs for this spec
for sess in sessions:
Expand Down

0 comments on commit 5459960

Please sign in to comment.