Spaces:
Running
Running
Commit History
-
Load the questionnaires, not just the trials
Everything a participant typed or slid rather than played was being collected and never read. The TriPM, the demographics, the belief and liking checks and every per-block battery sat in the session file with nothing to get them out. Three things a generic flattening gets wrong, and this does not. The TriPM is asked in a per-participant order, so it is scored through content/tripm_key.csv by item number. Reverse keys are applied, each scale reports a sum, a mean and how many items it is based on, and a participant who skipped the lot scores None rather than zero, which would have put them at the bottom of the distribution. Belief and liking are asked once per person, numbered in the order the participant met them, and that order is a coin flip. believed_p1 is the treasure hunt's partner for half the sample and the daytime harvest's for the other half, so a column of believed_p1 across participants is two different questions stacked. Each answer now also lands in believed_hunt, belie…76c60a1
-
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