Skip to content

Commit

Permalink
BUG: correctly extract run number
Browse files Browse the repository at this point in the history
  • Loading branch information
jungheejung committed Aug 26, 2024
1 parent c9560d9 commit b99ff2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacetop_prep/events/bidsify_narratives_ENH.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def narrative_format2bids(sub, ses, run, taskname, beh_inputdir, bids_dir):
for t in range(trial_num): # each trial

# Situation and context
r = int(run) - 1 # Adjust the run number to be zero-based
r = int(run.split('-')[1]) - 1 # Adjust the run number to be zero-based

if t < 9:
situation_chunk = DesignTable['Situation'][DesignTable['Narrative'] == narratives[r][t % 2]]
Expand Down

0 comments on commit b99ff2a

Please sign in to comment.