Skip to content

Commit

Permalink
Modify is_bids_file to ignore JSON with .bidsignore
Browse files Browse the repository at this point in the history
  • Loading branch information
sinhaharsh committed Feb 23, 2024
1 parent 1d79b5e commit 27d7b70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MRdataset/dicom_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def is_bids_file(filename: Union[str, Path]):
# TODO: Add some criteria to skip certain files
if 'derivatives' in str(filename):
return False

if 'bidsignore' in str(filename):
return False
# Regular expression pattern
pattern = r'sub-[^_]+'
# Extracting substring using regex
Expand Down

0 comments on commit 27d7b70

Please sign in to comment.