Hello Psychopy Community
I have a between subject design experiment. At the beginning of the Experiment i have a code to randomize the participant to a Group insert in a routine in “Begin Experiment”.
The code compenent calls Gruppe_2
coinflip = random.randint(0,1)
if coinflip == 0:
assignedGroup = “Fotos.xlsx”
assignedGroup = “Fotos2.xlsx”
The two different Conditions, have two different exel files which are called: Fotos and Fotos2.
Here the participant should get a 0 or an 1 randomly, so the participant do the experiment A with the exel file fotos or the experiment B with the exel file Fotos2.
Next the 3 different Routines with loops are following, which have in Conditions $assignedGroups.
The Problem occures in Initial-Adaption routine. Which is the green Routine in the middle. Here it cant find the condition in the builder $adaptor.
“C:\Users\fisch\OneDrive\Desktop\psychopy\PsychoPy\ISISNEU27_lastrun.py”, line 112, in
NameError: name ‘adaptor’ is not defined
The Second Problem is, that the code component doesnt work and in the Conditions it says No parameters found.
Without the Between Subjekt design, the experiment worked very well.
Im very new to Psychopy.
I am very thankful for your answers!