A collection of javascript (psiturk) scripts used to run the human studies in "Adaptive computation as a new mechanism of dynamic human attention"
@article{Belledonne_Butkus_Scholl_Yildirim,
title={Adaptive computation as a new mechanism of dynamic human attention},
author={Belledonne, Mario and Butkus, Eivinas and Scholl, Brian J. and Yildirim, Ilker},
journal={Psychological Review},
year={2025}
} - singularity
- wget
- tar
see help
chmod +x setup.sh
./setup.sh --helpThis setup file will, by default, pull a container and data files from dropbox.
chmod +x start_psiturk.sh
./start_psiturk.shThe majority of the experiment's functionality is described in psiturk/static/js/task.js
The main class used to setup pages for both the experiment and instructions is defined as Page.
Page handles both media presentation and scale setup. See the docstrings for more info.
There are three other main elements, InstructionRunner, Quiz, and Experiment.
The main html files are located under psiturk/templates/ and css is under psiturk/static/css.
Notabley, stage.html describes the pages for experimental trials and slider.css describes some of the elements found in the scale.