Spaces:
Running
Running
Commit History
-
Read the night watch, and a notebook that checks a live session end to end
NightWatch was in neither block list, so a session that played 96 trials loaded 48 and the whole block went nowhere without an error. Its trials also carry night=None, like a day trial, so "not a night trial" was counting them as day trials: added day_mask(), used by the summary and by to_pyem, and the block's own design columns (both options pay, and what moves is the partner's loss). Two more things the refreshed mirror broke: audit() raised on a session with no trials at all, which is exactly the session it exists to describe, and to_pyem indexed with an object-dtype mask after a concat. The model tests now select the pilot design explicitly rather than assuming the mirror holds nothing else. 04_sona_check.ipynb is the new one: what reached the repository, whether the day grid and the night watch ran as specified, whether the manipulations move behaviour, and whether a current-design session reaches a fitted parameter. Two sessions, so it demonstrates the path and claims nothing a…670ca7d
-
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