diff --git a/spacetop_prep/events/bidsify_social_ENH.py b/spacetop_prep/events/bidsify_social_ENH.py index c4406b9..232182e 100644 --- a/spacetop_prep/events/bidsify_social_ENH.py +++ b/spacetop_prep/events/bidsify_social_ENH.py @@ -281,7 +281,7 @@ def parse_args(): filtered_cognitive_flist = glob.glob(str(Path(beh_inputdir) / sub / '**' / 'task-social' / '**' / f'*{args.bids_string}*.csv'), recursive=True) if not filtered_cognitive_flist: - temp_fpath = Path(beh_inputdir) / sub / 'task-social' / ses / f'{sub}_{ses}_task-social_{run}_beh_TEMP.csv' + temp_fpath = Path(beh_inputdir) / sub / 'task-social' / ses / f'{sub}_{ses}_task-social_{run}*TEMP*.csv' if temp_fpath.is_file(): filtered_cognitive_flist = [str(temp_fpath)] else: