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
-
Serve the current consent form, and flag sessions rather than drop them
The served consent was the 25 August text. The 19 September revision adds one sentence -- that the bonus is paid via Venmo gift card, Amazon gift card or PayPal -- and participants were agreeing to a form that did not say how they would be paid. Added to both the SONA and the dyad copies. Inclusion now works the way Qualtrics does: every session stays in the table with `finished` and `progress`, a boolean per criterion and a readable `flags` string, and nothing is removed. A notebook drops rows on purpose with `apply()`, which hands back both halves, so the kept count cannot be reported without the dropped one. Someone who stopped after the day task may still be usable for the day task. `progress` needs the stage list, which the analysis cannot import -- it runs in the conda env that has pyEM and not nicegui. So it carries a copy, and test_stage_order.py in the web-app suite fails if that copy ever drifts from build_experiment(), rather than letting the progress column go quietly wro…590551b -
Analysis pipeline: the model family
pe_analysis/models.py: the eight published fit/sim pairs (self/other k crossed with self/other beta, parabolic and linear effort cost), fitted per session with pyEM, plus integrated BIC for the comparison. It is a separate implementation from analysis/effort_models.py rather than an import. That one builds its own balanced design and takes the rest credit from a module constant, which is right for simulation and wrong here: the rest credit was 1 in every pilot session and is 2 now, and night 1 has its own again, so every real trial has to carry its own. Sharing the module would let a change made for one silently alter the other. Two models beyond the published eight, kept out of FAMILY so the headline comparison stays the published one: the day task crosses reward against effort fully, so it can separate "values their partner's credits less" from "finds effort costlier for their partner" -- but only with reward sensitivity in the model. Without it, every self/other difference is attr…dffba6e