![]() ![]() #sets the words to be presented per sessionĮrrormessage = 'Incorrect session! Try 001 or 002. #define words to be presented per session Oooooooh sorry I had no idea how to do it! & Where would I find my experiment info dialogue? This is what I have in relation to expinfo: if expInfo = '001':Įrrormessage = 'Incorrect session! Try 001 or 002.' Please use ``` before and after all code, or indent individual code lines with four spaces. Probably easiest to also enter the session number in the exp. Loops dont just have to be used to present trials/repeat stimuli. ![]() Present the first half in session 1, and the second half in session 2. From this we know that if we want a pre-specified. So similarly, if you have an experiment info dialog field called ‘seed’, you could do: np.ed(expInfo) I found out even though I selected loopType as random, the images are still displayed in repeats across blocks and between events. this is what all Builder scripts make available: import numpy as np # whole numpy lib is available, prepend 'np.'įrom numpy.random import random, randint, normal, shuffle, choice as randchoice That way, the seed you set will apply to all relevant PsychoPy functions as well.Į.g. randomly selecting a number of images) but then you will have a. NB don’t use the random package from Python’s standard library. You can add a loop around your trials, as normal, to control the trials within a block (e.g. I now still need to implement the exact same experiment in the builder (you can use your own repeatloop. In the first session, use the first 20 stimuli, and in the second, use the second lot of 20. Then the randomisation will be the same across the two sessions for that subject. in the information dialog at the start of the experiment, enter a seed value which is unique for each subject. (Begin Experiment in the experiment loop)Īlternatively, instead of setting a random seed (which isn’t necessary, as there will be a new seed each time unless you set it otherwise), create a fixed one for each subject. #read the stimuli from sheet (all columns) What did you try to make it work?: import random, xlrd I have it coded and everything but it repeats some stimuli which I do not want. For Session 001, I want to randomly present the first 20 stimuli from the first group and Session 002, randomly presents 20 stimuli from the other group.I would like to split those into two groups of 20 stimuli.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. Standard Standalone? (y/n) If not then what?: y 1 Answer Sorted by: 0 As you suspected, you will need to nest additional loops within your current one. If not then just delete and start from scratch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |