mixerright.blogg.se

Psychopy loop type random no repeat
Psychopy loop type random no repeat











The reason is that I do not shuffle stimuli, but only pointers to whether PsychoPy should take an item from column “conditionone” or column “conditiontwo”. There are ways to randomise the order of multiple routines on the timeline, using some snippets of custom code. You don’t have a conditions file, so the loopType will have no effect here, regardless of the option you select. The same happens if I set the loopType to random (which I did not expect). The randomisation option refers to how the rows extracted from a conditions file are ordered. If I shuffle “cuelist” there won’t be exactly six items from conditionone and six from conditiontwo anymore. These only need to be presented once (so 25 trials). There are 5 faces displaying 5 different emotional expressions making 25 unique stimuli in total. This would result in an experiment in which a participant will see six items of conditionone and six of conditiontwo and then the fillers. 1 In my experiment, I am presenting images (faces) that are different across 2 dimensions: face identity and emotion. Then it takes sixteen times “conditionone” and “conditiontwo” which are the sixteen remaining rows. These later correspond to the first twelve rows of my Excel sheet.

Psychopy loop type random no repeat code#

So far, my code generates a list of sixt times “conditionone” and six times “conditiontwo”. All we need to do is control the rows used in each session. Just navigate to the file using the conditions field.

psychopy loop type random no repeat

Probably (and hopefully) I’m overlooking something really simple and stupid I would be really, really greateful if someone could point me into the right direction No, a builder loop imports an Excel file for you automatically. Sometimes four stimuli from the first condition are shown and eight from the second or five from the first and seven from the second. I have a simple experiment with 8 different trials that I wish to present only once without repeat participants are asked to 'solve' a numeric sequence where 4 sequences have a solution (S) and 4 are unsolvable (U). If I run the experiment with loopType set to “sequential” everything works just fine, i.e., participants see six stimuli from the first and six stimuli from the second condition (and they are randomly chosen) However, if I set the loopType to “random” this does not work anymore. Randomising conditions with alternating order in PsychoPy.

psychopy loop type random no repeat

To Begin Routine I added a code which takes one element from this list: //Take the first element of cuelist: So now I have a list of all stimuli I want to present named “cuelist”. Put the list of stimuli and the filler list togetherĬuelist = cuelist.split(",").map(String) shuffle the list so that whether conditionone or conditiontwo is shown is random. I added the following code to Begin Experiment (but note that I’m really bad at programming ): //Participants need to see six stimuli from condition one and six from condition two











Psychopy loop type random no repeat