Spaces:
Running
Running
Commit History
-
Make the randomisation reproducible, and stop losing trials in the export
_seed_from_pid used Python's hash(), which is salted per process. The same pid therefore produced a different trial order, work side and partner avatar on every server restart, and a Spaces cold start mid-session reshuffled the remaining blocks. Switched to crc32. The regression test spawns fresh interpreters, because nothing in-process can catch this. Counterbalance the night blocks. build_experiment() listed Night 1 before Night 2 unconditionally, so every 'both' participant met Night 1 first and any Night1-vs-Night2 difference was confounded with fatigue and practice. The stage list is fixed at import time and cannot be reordered per session, so both lanes are built and the unused one is skipped, driven by ?night_order=. Pre-register the allocation (make_allocation.py, allocation.csv). A seed gives random assignment, not balanced assignment; a table fixes the split exactly and can be inspected before collection starts. Arms are balanced WITHIN group, since group is recruited rathe…4a98c12