From 54599607750ae68f7b666279ec3ca17623233030 Mon Sep 17 00:00:00 2001 From: "Brian D. Boyd" Date: Fri, 12 Jul 2024 10:19:46 -0400 Subject: [PATCH] support all sessions for analysis (#466) --- dax/rcq/analysislauncher.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dax/rcq/analysislauncher.py b/dax/rcq/analysislauncher.py index d27b5ebd..9a4ab55d 100644 --- a/dax/rcq/analysislauncher.py +++ b/dax/rcq/analysislauncher.py @@ -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: