Skip to content

Commit

Permalink
BUG: stimuli path #90
Browse files Browse the repository at this point in the history
  • Loading branch information
jungheejung committed Jun 3, 2024
1 parent 3fb3caf commit ae69d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacetop_prep/events/bidsify_fractional.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@
events['participant_response'] = df_spunt['event03_response_keyname'].replace({'left': 'yes', 'right':'no'})
events['normative_response'] = df_spunt['param_normative_response'].replace({1:'yes', 2:'no'})
events['event_type'] = df_spunt['event_type'].str[:3] + '_' + df_spunt['event_type'].str[3:]
events['stim_file'] = task_name + '/' + df_spunt['param_image_filename']
events['stim_file'] = 'task-' + task_name + '/' + df_spunt['param_image_filename']
df_spunt['reponse_subject'] = df_spunt['event03_response_key'].replace(3, 2)
events['response_accuracy'] = (events['participant_response'] == events['normative_response']).astype(int).replace({1: "correct", 0: "incorrect"})

Expand Down

0 comments on commit ae69d68

Please sign in to comment.