Skip to content

Commit

Permalink
do not check id columns for image extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkent committed Jan 10, 2024
1 parent 6315367 commit 948435b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nimare/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 948435b

Please sign in to comment.