This is the psiturk component of the cross-domain-cloth project
Following the current psiturk
api, the folder located at /psiturk
contains
all the necessary bits to host a psiturk experiment
The main components are:
movies
: Collection of downloaded media including stimuli and condition lists.cloth-psiturk-*/static/data/condlist_*.json
: Describes which stimuli should be presented in a random order for a given condition
- singularity (optional)
- psiturk
- wget
- unzip
Singularity is not mandadatory but may be the most streamline for deployment
default.conf
: Defines the path and download linksoptions/config_default
: Defines parameters for the experiment
simply run
chmod +x setup.sh
bash -e setup.sh
This setup file will, by default, pull a container and data files from dropbox.
If using singularity, just do:
chmod +x start_psiturk.sh
./start_psiturk.sh --exp=stiffness|mass
prolidic ID: 000000000000000000000000
Otherwise
Navigate to the psiturk folder
cd cloth-psiturk-stiffness/psiturk
and run psiturk
psiturk -c
If you get an error about config run the following and try again
psiturk -C
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
.
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.
- The .ai images used in the web pages can be downloaded here