Skip to content

Commit

Permalink
Dotfile filtering
Browse files Browse the repository at this point in the history
Co-authored-by: Austin Macdonald <asmacdo@gmail.com>
  • Loading branch information
TheChymera and asmacdo committed May 2, 2023
1 parent 50b126f commit 7ea835c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samri/pipelines/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ def bids_data_selection(base, structural_match, functional_match, subjects, sess
except KeyError:
pass

# We should ignore dotdirs unless they're in the base path.
df = df[~df.path.str.contains(base + ".*/\.")]

if verbose:
print(df)
print(df.columns)
Expand Down

0 comments on commit 7ea835c

Please sign in to comment.