Spaces:
Running
Running
Commit History
-
Analysis pipeline: the data layer
pe_analysis/{gitlab,loader,inclusion}.py plus tests, run against the real pilot mirror rather than fixtures. It reproduces the pool the plan predicted: ten sessions, 48 trials each, none missed, with 0004's first session and PILOT03 flagged as always-work responders -- the likelihood is flat in k for those, so they are excluded visibly rather than dropped upstream. Three things it is built around: The session is the unit, never the pid. Pilot links were handed out as "pick one of these at random", so 0004 is three sessions and may be three people. Trial counting is max(block record, safety-net records). PILOT03's second block record never wrote and its 24 trials survive only as Harvest2_trial0..23; counting block records alone truncates that session to 24 in silence. Nothing assumes a design. Rewards, effort fractions and the rest credit are read off each trial, because all three have changed once: every pilot session ran 2/6/10, 0.50-0.95 and a rest credit of 1, and the current bu…d367697
-
Stop the test suite writing to the participant-data repo; log arrivals
test_finish_reorder drives the app end to end with ?pid=SMOKE_final_screen&dev=1, which runs the real finish path: export -> push_to_gitlab -> a commit on the production dataset. Every full pytest run was adding SMOKE_* sessions and randomization_log rows, indistinguishable at a glance from participant data. conftest now clears GITLAB_TOKEN/PROJECT for the test session, so the code under test still runs its real path and no-ops at the network boundary. Also wires up gitlab_save.append_to_log(), which was fully implemented and never called from anywhere. It writes one roster row per session as soon as the pid is known -- before any stage completes -- so a participant who drops out early still leaves a trace. Six days of pilot data went missing in August with no record that anyone had arrived at all. Keyed on the browser session rather than the pid: pilot links are handed out as "pick one at random", so several participants share a pid and keying on it would have logged only the first …a534abf
-
Add firefly night rest scene (marshmallow, ambient fireflies) + Evening/Night block labels
Also adds minimal pytest async infra (conftest.py registering nicegui's `user` fixture plugin, asyncio_mode=auto in pyproject.toml) needed to run the new test_block_labels.py against this repo's pytest/pytest-asyncio versions; no production behavior changes from those two files.3d49838