From 7fe597e7ca3a51eb0b3f2a2dd47134945f72c5c0 Mon Sep 17 00:00:00 2001 From: Will Asciutto Date: Tue, 11 Oct 2022 12:51:51 -0400 Subject: [PATCH] Fix incorrect reference to session parameter instead of sub_session_list's key value for 'session' in the case of non-longitudinal selection. --- clpipe/dcm2bids_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clpipe/dcm2bids_wrapper.py b/clpipe/dcm2bids_wrapper.py index c8612a63..479a7bb4 100644 --- a/clpipe/dcm2bids_wrapper.py +++ b/clpipe/dcm2bids_wrapper.py @@ -204,7 +204,7 @@ def convert2bids(dicom_dir=None, dicom_dir_format=None, bids_dir=None, if longitudinal: conv_args["subject"] += "sess"+ i['session'] else: - conv_args["session"] = session + conv_args["session"] = i['session'] # Unpack the conv_args submission_string = conv_string.format(**conv_args)