![]() My python skills are limited and I intend to run this online so I’d like to keep it simple to make the Java conversion less painful. Or if you see a simple solution I’m missing. Does PsychoPy store imported xls and csv files in a format I can access and manipulate?Īny recommendations based on the code in the example above would be useful. letting me check type but shuffle both together. In essence, you will put a loop around each of your tasks and give it a repetitions value of 0 or 1 to determine whether it occurs on a given trial. I can’t think of the best way to tie the indices of the ‘type’ and ‘melodies’, i.e. 1 Answer Sorted by: 0 As you suspected, you will need to nest additional loops within your current one. The trialHandler presents a predetermined list of conditions in either a sequential or random (without replacement) order. Because I have two other routines in the same loop I’d really prefer to preserve the builder loop if possible. This is what underlies the random and sequential loop types in Builder, they work using the method of constants. The audio happens in the “trials” routine. Here is the structure of the loop I’m using ![]() I want to shuffle items based on another condition (the type column).Ĭan I do this within a builder loop? Meaning cheat a little by using the loop for iteration but use a custom code component to select the stimulus. It will need 8 columns: 7 to specify the unique images in a trial and an eighth to specify the repeated one. First, start with your conditions file (i.e.csv or. loopType determines if PsychoPy keeps the order of non-header rows in the. In its “begin experiment” tab, put something like this ( we need to run this at the start of the experiment since the code is non-deterministic: we don’t know how long it will take to run (realistically though, it will be a fraction of a second for only 12 entries):īut it shows how to shuffle items within an array. OS: Win10 PsychoPy version : 2021.2.1 I’m building a Simple Reaction Time experiment. 1 Answer Sorted by: 0 Yes, you're correct that there is a (much) more efficient way to do this. Using a loop, you define a trial template, and repeat it as many times as. 1.84. Until now, we have a randomised block design, where the order of blocks is set to random. Insert a code component on your trial routine (from the “Custom” component panel). Counterbalancing is simply an extension of blocking. In your specific case, something like this might work: Randomisation without consecutive presentations Builder provides a general solution here:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |