6/7/2023 0 Comments Subset items in psychopy![]() reaction times, use the iohob background where keys are recorded as a separate process, independent on the presentation of stimuli. You can specify the widely used x,y-pairs using these types: A Tuple (x, y) with two elements A List x, y with two elements A numpy array ( x, y) with two elements However, PsychoPy always converts the x,y-pairs to numpy arrays internally. I want to display a random 10 of the 36 original. This will discretize the times that you can record responses by the frame rate (usually 60 times per second). PsychoPy is very flexible in terms of input. My trial will be: step 1: display a picture until keyboard response, step 2: keyboard response (was the picture in the original or not - y/n) my picture stimuli are small cutouts from larger pictures, 36 are from the original and 36 are from a different picture by the same artist. If you're actively transitioning the content on the screen, you would do this in a for-loop with a call to win.flip() on every iteration rather than the while-loop above. # Save trial here along with the contents of allResponses Response = event.waitKeys() # you probably have event.waitKeys(keyList=) or something like that right nowĪllResponses += response # add keynames. Across items, participants will see both sensible and nonsense sentences. In one block, a sensible sentence will require a w key-press, and in the other block a sensible sentence will require an s key-press. Usually a list of dicts.ĪllResponses = # we will fill this in with responses The items will be split in two blocks and presented to participants separately. The routines pane The Routines pane consist of the different elements of your experiment, where each element gets its own tab. So if your target key is space: from psychopy import visual, eventįor trial in range(5): # loop over trials. Apart from the list of icons on top of the Builder window, there are several subwindows (or panes): the Routines pane, the Components pane, and the Flow pane. Assuming that you've built your experiment using code, the strategy would be to use event.waitKeys() as you do now, but then only have visual action when a certain key is pressed and add other keys to a list.
0 Comments
Leave a Reply. |