I have a conditions file in a routine which has 4 stimuli inside it, all I want is that a single stimulus (probe A) will be chosen from this file and presented to the participant, then we will have another routine (probe B) where again we will choose a stimulus from this conditions file however it mustn’t be the same as the one presented in probe A. I can do this part by saving the stimulus presented to a variable and comparing , no problem. But I cant be sure how I can interfere with the loop so that this matching stimulus wouldn’t be presented and instead another random stimuli would be chosen. Maybe continue the loop?
I know Python well, so I looked around the documentation and pschopy library, I couldn’t find a method to provide a list of the stimuli. Is there such method?
There is a trialList (and Im not sure how this works) however this works when you make a loop. When I make a loop all of these stimuli gets presented once (since I have a n=1 loop) so a total of 4 images are presented. I want to present the one stimulus, just once.
I thought of hard-coding the list of stimuli to an array but I think keeping the conditions file would be neater, so I wouldn’t need to code to add new stimuli in the future.