Guest User

Untitled

a guest
Apr 23rd, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
4CS 0.66 KB | None | 0 0
  1. set description "Executes Python code"
  2. set _run ""
  3. ___prepare__
  4.  
  5. ## Select the current item:
  6. curItem = curItems[0]
  7.  
  8. ## Remove this item for the to be studied items, as the participant might
  9. ## answer it correctly.
  10. curItems.remove(curItem)
  11.  
  12. ## Figure out whether we already presented this item. If so, present a test
  13. ## trial, if not, present a study trial *and* make sure that next time round
  14. ## we'll present it as a study trial.
  15. if (curItem in itemsPresented):
  16.     trialType = 'test'
  17. else:
  18.     trialType = 'study'
  19.     curItems.append(curItem)
  20.     itemsPresented.append(curItem)
  21.  
  22. var.cue = curItem
  23. var.response = allItems[curItem]
  24. var.trialType = trialType
  25. __end__
Add Comment
Please, Sign In to add comment