Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
randomize stimuli
#3
Thank you very much!
I cleaned up the code quite a bit, however, I am getting an error about the 'definition of a block must be a dictionary'. I thought that I had all the necessary components for each block. Would you mind taking a look at it?
Im also not sure if I used the response_pairing correctly.

{
  "T1":{
    "type": "instruction",
    "stimuli": ["Instruction"],
    "duration": 5
},
  "T2":{
    "type": "instruction",
    "stimuli": ["EndInstruction"],
    "duration": 5
},
  "PracticeTrials":{
    "type": "basic",
    "visible": "true",
    "stimuli": ["1019P", "1020P"],
    "stimulus_pattern": {"order": "fixed"},
    "responses": ["ACCEPTABLE", "UNACCEPTABLE"]
},
  "TestTrials":{
    "type": "basic",
    "visible": "true",
    "stimuli": ["1021CC", "1022CC", "1023CC", "1024CC", "1025CC", "1026CC", "1028CC", "1029CC", "1030CC", "1031CC", "1042NC", "1043NC","1044NC", "1045NC", "1046NC", "1047NC", "1048NC", "1049NC", "1050NC", "1051NC", "1063QC", "1064QC", "1065QC", "1066QC", "1067QC", "1068QC", "1069QC", "1070QC", "1071QC", "1052NI", "1053NI", "1054NI", "1055NI", "1056NI", "1057NI", "1058NI", "1060NI", "1061NI","1072QI", "1073QI", "1074QI", "1075QI", "1076QI", "1077QI", "1078QI", "1079QI", "1080QI", "1081QI", "1032CI", "1033CI", "1034CI", "1035CI", "1036CI", "1037CI", "1038CI", "1039CI", "1040CI", "1041CI"],
    "stimulus_pattern": {"order": "random"},
    "response_pairing" : {"order": "partitioned"},
    "responses": ["ACCEPTABLE","UNACCEPTABLE"]
 
// 1027, 1059 does not exist ; skip
}
}

This is my Procedure:

{
  "type": "blocking",
  "blocks": {
    "PracticeBlock": {
      "trial_templates": ["PracticeTrials"],
      "pattern": {"order": "fixed"},
      "cover_trials": ["T1"],
      "end_trials": ["T2"]
},
  "TestTrials": {
      "trial_templates": ["TestTrials"],
      "stimulus_pattern": {"order": "random"}
   
},
 
    "block_sequence": ["PracticeBlock", "TestTrials"]

}
}
Reply


Messages In This Thread
randomize stimuli - by czeidan - 02-10-2021, 07:21 PM
RE: randomize stimuli - by Ting - 02-10-2021, 10:39 PM
RE: randomize stimuli - by czeidan - 02-11-2021, 11:07 AM
RE: randomize stimuli - by Ting - 02-11-2021, 12:25 PM
RE: randomize stimuli - by czeidan - 02-22-2021, 04:26 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)