Skip to content

Commit

Permalink
BUG: fix glob path for memory task
Browse files Browse the repository at this point in the history
  • Loading branch information
jungheejung committed Sep 9, 2024
1 parent 7393962 commit 7cc6967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacetop_prep/events/bidsify_fractional_combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def parse_args():
print(f'No behavior data file found for {args.bids_string}. Skipping to next task.')
else:
# If no bids_string is provided, search for all relevant files excluding specific subjects
memory_flist = list(Path(beh_inputdir).rglob(f'**/*{task_name}*.csv'))
memory_flist = list(Path(beh_inputdir).rglob(f'**/*{task_name}_beh.csv'))

# Filter out files belonging to the excluded subject (e.g., "sub-0001")
filtered_memory_flist = [file for file in memory_flist if "sub-0001" not in str(file)]
Expand Down

0 comments on commit 7cc6967

Please sign in to comment.