Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set description "Executes Python code"
- set _run ""
- ___prepare__
- ## Select the current item:
- curItem = curItems[0]
- ## Remove this item for the to be studied items, as the participant might
- ## answer it correctly.
- curItems.remove(curItem)
- ## Figure out whether we already presented this item. If so, present a test
- ## trial, if not, present a study trial *and* make sure that next time round
- ## we'll present it as a study trial.
- if (curItem in itemsPresented):
- trialType = 'test'
- else:
- trialType = 'study'
- curItems.append(curItem)
- itemsPresented.append(curItem)
- var.cue = curItem
- var.response = allItems[curItem]
- var.trialType = trialType
- __end__
Add Comment
Please, Sign In to add comment