Skip to content

Commit

Permalink
Update confounds.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Oct 18, 2023
1 parent fb4d031 commit 25a4132
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions xcp_d/utils/confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 25a4132

Please sign in to comment.