Skip to content

CNCLgithub/AdaptiveComputation-psiturk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adaptive Computation Psiturk Repo

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}
} 

Setup

dependencies

  • singularity
  • wget
  • tar

setup

see help

chmod +x setup.sh
./setup.sh --help

This setup file will, by default, pull a container and data files from dropbox.

Running psiturk

chmod +x start_psiturk.sh
./start_psiturk.sh

API

task.js

The 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.

css and html

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.

About

Behavioral experiments for "Adaptive computation as a new mechanism of dynamic human attention"

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •