Skip to content

Commit 7ea835c

Browse files
TheChymeraasmacdo
andcommitted
Dotfile filtering
Co-authored-by: Austin Macdonald <asmacdo@gmail.com>
1 parent 50b126f commit 7ea835c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

samri/pipelines/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ def bids_data_selection(base, structural_match, functional_match, subjects, sess
236236
except KeyError:
237237
pass
238238

239+
# We should ignore dotdirs unless they're in the base path.
240+
df = df[~df.path.str.contains(base + ".*/\.")]
241+
239242
if verbose:
240243
print(df)
241244
print(df.columns)

0 commit comments

Comments
 (0)