From 25a41329400e037859855cc317dc41a7b47218e4 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Wed, 18 Oct 2023 11:09:40 -0400 Subject: [PATCH] Update confounds.py --- xcp_d/utils/confounds.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/xcp_d/utils/confounds.py b/xcp_d/utils/confounds.py index e04006358..fb081e7a6 100644 --- a/xcp_d/utils/confounds.py +++ b/xcp_d/utils/confounds.py @@ -106,12 +106,7 @@ def get_custom_confounds(custom_confounds_folder, fmriprep_confounds_file): return None if not os.path.isdir(custom_confounds_folder): - parent_dir = os.path.dirname(custom_confounds_folder) - parent_contents = "\n\t".join(os.listdir(parent_dir)) - raise ValueError( - f"Custom confounds location does not exist: {custom_confounds_folder}\n\n" - f"Contents of {parent_dir}:\n\t{parent_contents}" - ) + raise ValueError(f"Custom confounds location does not exist: {custom_confounds_folder}") custom_confounds_filename = os.path.basename(fmriprep_confounds_file) custom_confounds_file = os.path.abspath(