From ca11ec7c011b8a28ae5879848bc93b993f3f17ba Mon Sep 17 00:00:00 2001 From: James Kent Date: Wed, 10 Jan 2024 16:16:49 -0600 Subject: [PATCH] [FIX] do not check id columns for image extensions (#860) do not check id columns for image extensions --- nimare/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nimare/utils.py b/nimare/utils.py index 95e159a11..8d067d2ad 100755 --- a/nimare/utils.py +++ b/nimare/utils.py @@ -510,10 +510,10 @@ def _validate_images_df(image_df): DataFrame with updated paths and columns. """ valid_suffixes = [".brik", ".head", ".nii", ".img", ".hed"] - + id_columns = set(["id", "study_id", "contrast_id"]) # Find columns in the DataFrame with images file_cols = [] - for col in image_df.columns: + for col in set(image_df.columns) - id_columns: vals = [v for v in image_df[col].values if isinstance(v, str)] fc = any([any([vs in v for vs in valid_suffixes]) for v in vals]) if fc: