My name is Wakefield Morys-Carter
It doesn’t use external spreadsheets but you will need to add some images.
Currently the image code is:
code_faces
happyFaces=['03F_HA_C.jpg','07F_HA_C.jpg','13F_HA_C.jpg','19F_HA_C.jpg','37M_HA_C.jpg','24M_HA_C.jpg','38M_HA_C.jpg','45M_HA_C.jpg']
sadFaces=['03F_SA_C.jpg','07F_SA_C.jpg','13F_SA_C.jpg','19F_SA_C.jpg','37M_SA_C.jpg','24M_SA_C.jpg','38M_SA_C.jpg','45M_SA_C.jpg']
thisFace=int(expInfo['face'])-1
code_JS
if ((expInfo["group"] === "1"))
{
psychoJS.downloadResources([
{ name: (expInfo["participant"] + "s.jpg"), path: ("../faces/" + expInfo["participant"] + "s.jpg") },
{ name: (expInfo["participant"] + ".jpg"), path: ("../faces/" + expInfo["participant"] + ".jpg") }
]);
}
else
{
psychoJS.downloadResources([
{ name: happyFaces[thisFace], path: "../Nim-Face-Stimuli/"+happyFaces[thisFace] },
{ name: sadFaces[thisFace], path: "../Nim-Face-Stimuli/"+sadFaces[thisFace] }
]);
}
code
if expInfo['group']=='1':
smiling=expInfo['participant']+'s.jpg'
sad=expInfo['participant']+'.jpg'
else:
smiling=happyFaces[thisFace]
sad=sadFaces[thisFace]
I don’t feel that it’s appropriate for me to send you the images but I’m also reluctant to simplify the code when I don’t know what you need.
Here are the conditions (in code)
#conditions[0] happypos 1 top -1 bottom
#conditions[1] dotpos 1 happy -1 neutral
#conditions[2] dotnum 1 or 2
if expInfo['group']=='3':
conditions=[[1,1,1],[1,1,2],[1,-1,1],[1,-1,2],[-1,1,1],[-1,1,2],[-1,-1,1],[-1,-1,2]]
else:
conditions=[[1,1,1],[1,1,2],[1,1,1],[1,1,2],[-1,1,1],[-1,1,2],[-1,1,1],[-1,1,2]]
shuffle(conditions)