diff --git a/clinicadl/utils/iotools/clinica_utils.py b/clinicadl/utils/iotools/clinica_utils.py index 963904416..55ba7a5e8 100644 --- a/clinicadl/utils/iotools/clinica_utils.py +++ b/clinicadl/utils/iotools/clinica_utils.py @@ -227,7 +227,7 @@ def create_subs_sess_list( if not file_name: file_name = "subjects_sessions_list.tsv" - subjs_sess_tsv = open(subjs_sess_tsv_path, "w") + subjs_sess_tsv = open(output_dir / file_name, "w") subjs_sess_tsv.write("participant_id" + "\t" + "session_id" + "\n") if is_bids_dir: