![]() Even if you are new to python the skills you learn for this kind of script are a good intro - here is a script that I use for a similar purpose - creating a large number of counterbalanced conditions files. PsychoPy is an application for the creation of experiments in behavioral science (psychology, neuroscience, linguistics, etc.) with precise spatial control and timing of stimuli. *It will ptobably be most useful long term to make a python script to write your conditions files - and save manual work. Then in the ‘conditions’ field of your loop use $'conditions'+expInfo+'xlsx' - where 'expInfo will be the number you enter into the participant field of the gui at the start. ‘conditions1.xlsx’, ‘conditions2.xlsx’ … ‘conditions30.xlsx’)*. 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. 30 participants with their own order) make a unique file for each participant (e.g. 1 Answer Sorted by: 0 Yes, you're correct that there is a (much) more efficient way to do this. If you want a new pseudorandom order for each participant (e.g. writing code to interact with the serial/parallel ports). we can simply repeat our trial loop a number of times (like the nReps property of. import os import sys import random import psychopy.visual import psychopy.gui gui. PsychoPy is an incredibly versatile and flexible software package. For now, we recommend that you make your conditions file in the order that you want and then set your loop type to be ‘sequential’. This might be create a variable that you want for another Component, to manipulate images before displaying them, to interact with hardware for which there isn’t yet a pre-packaged component in PsychoPy® (e.g. We will require a participant identifier and a repeat number. You can use a number of different Loop Types in PsychoPy. ![]() Currently there is no simple ‘out of box’ approach to pseudorandomistion in PsychoPy. Loops control the repetition of Routines and the choice of stimulus parameters for each. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |