Each block now puts the pair's first letter on the left for exactly half its
trials and its second for the other half, shuffled, matching the 20-trial
PsychoPy scheme. Applies to the dyad arm and the SONA arm. The quiz feedback
sentence is recapitalised after its prefix is stripped.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Deploy: record the trial landmarks, the quiz feedback and the clicks
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>
Deploy: 16-trial redesign, chest/counterbalancing fixes, pilot bug fixes
Squashed deploy snapshot of main (items 23-30 in PROJECT_LOG.md), built
without the tracked reviewer-instructions .docx: Hugging Face's git
endpoint rejects pushes containing binary files (Git LFS/Xet only), and
this history carried two .docx blobs. The doc isn't needed by the running
app -- it stays tracked on `main` and backed up via `origin`, just left
out of what's pushed here. See PROJECT_LOG.md on `main` for the full,
unsquashed commit history and rationale.
Co-Authored-By: Claude Sonnet 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>