-
Notifications
You must be signed in to change notification settings - Fork 140
Psiturk.taskdata
Doug Markant edited this page Oct 18, 2013
·
6 revisions
psiturk.taskdata
taskdata
is a Backbone model that is used to store all data generated by a participant and to sync it to the database.
taskdata
has the following fields with these default values:
condition: 0
counterbalance: 0
assignmentId: 0
workerId: 0
hitId: 0,
useragent: ""
currenttrial: 0
data: ""
questiondata: {}
eventdata: []
These variables are either set during initialization or using the methods of the PsiTurk object. However, since taskdata
is a Backbone model, you can always access their values directly using the Backbone set
and get
methods, which may be useful for debugging. For example:
psiturk.taskdata.set('condition', 2)
psiturk.taskdata.get('condition')