stim_onset/outcome_onset plus the two interval columns, from stamps nicewebrl
was already writing; the quiz feedback text; partner_relation; and the screen
recorder fix that was losing every click count and the timing file's rt.
Also deals the partner code and avatar from the pool instead of per session.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Make the export RL-model-ready: chosen_option column + pyem_data loader
- export_csv now writes chosen_option (the chosen letter A-D) alongside chosen_side — this is
the 'choices' input the pyem RL models want (rl_hp.py); OG encodes the choice the same way
(key_resp.keys side + option_left/right letters, no ready chosen-letter column).
- new pyem_data.py: load_subjects()/to_all_data() turn the GitLab *_data.csv into the exact
(12,20) arrays each rw*_fit expects (choices letters, outcomes_self/other in {-1,0,+1},
option_pairs (12,20,2) letters), main-task trials only. Verified end-to-end on demo data:
every chosen letter is one of the two shown, all 240 cells filled.
- CODEBOOK documents chosen_option.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>