princessamygdala Claude Opus 5 commited on
Commit
ff0c87a
·
1 Parent(s): 4db8278

Name the timing columns the way PsychoPy names them

Browse files

Checked against this task's own PsychoPy export,
example_sub-TEST3_task-sociallearning-hp_2025-02-05_*.csv. Its convention is
<component>.started and <component>.stopped in seconds from the experiment
clock, <component>.keys / .rt / .duration where the component took a
response, loop counters, and a metadata block repeated on every row: date,
expName, psychopyVersion, OS, frameRate.

The timing file now carries all of those, long: one row per component, the
component named in a column instead of in the column name. Both tasks write
the identical 26 columns, asserted by a test that reads the other repo's
list, so the two can be stacked.

One clock. started, stopped, duration and rt are seconds from the earliest
stamp in the session, computed in the exporter from the ISO stamps so every
row shares a zero, including the houses and ratings that are reconstructed
from env timesteps. A rating screen's enter is not logged, so its exit is
back-dated by its own rt to give it the same shape. screens.py also records
its own monotonic reading as a drift check. The ISO stamps stay in
enter_iso/exit_iso, because a wall clock is what tells you a participant came
back the next day.

to_psychopy.py pivots the long file into the wide one-column-per-component
shape, for an analysis already written against a Pavlovia export.

Harvest had no device or version record at all, so log_tech is ported there
from this task: OS, frameRate, user agent, screen and viewport, task version
and git commit, which is where its metadata block now comes from.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

5 files changed +270 -31
Files changed (5)
export_timing.py+84-22
screens.py+29-5
test_screen_timing.py+26-4
to_psychopy.pyAdded+81
web_app.py+50