[solved] Read out randomized trial list
Hi,
I wondered is there a way to read out the trial list that you define e.g. with the variable wizard in a block loop? More importantly, if this list is not sequential but randomized, does OpenSesame define it during the prepare phase or run phase? Or in other words, is it possible to read this list out at the beginning of the experiment or only on trial by trial base?
Thanks!
Comments
Hi Michel,
In principle yes, although it involves messing with the OpenSesame internals. The loop table is available as a
matrixproperty of a loop item. So the loop table of the block_loop is:This is a dictionary where the cycle number is the key. Each value in the
matrixdictionary is another dictionary, where the variable name is the key and the variable value is the value (if that makes sense). So you could print out the loop table as follows:The
matrixis not randomized. That only happens in the run phase of the loop. So you can't know the random order of the loop, before the loop is actually executed. However, if this is important, you could randomize thematrixyourself and set the loop order to sequential.Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks, thats a good advice!
Topic can be closed!