![]() ![]() For an experiment we nearly always need to import the visual, event, data and core modules from PsychoPy:Ĭue = visual. Create a window ¶įirst we need to import the necessary libraries. List Square brackets containing a list of elementsĭictionary Curly brackets containing sets of “key value pairings”. String Characters enclosed in quotations e.g. We can measure the effect of attention by the difference in reaction times between correct and incorrect cuesĭon’t be tempted to try and write a script from beginning to end in one go! Break it down into chunks that you can manage. Usually the cue predicts the probe location ![]() Participants have to respond to the presence of the probe as quickly as possible Present a probe to the left or right of fixation To start with we will learn the fastest way to code an experiment (with the simplest code), but this doesn’t mean it is the “best” way - so do check out the suggested Improvements. You can transfer most of the code you learn back into builder You will get a better understanding of how builder is working It’s useful to learn how to code anyway, and an experiment is a good visual goal. Why are we coding an experiment when we just spent two days telling you even good coders should use builder? We’ve provided more specific detail on Python syntax and objects later in this material for future reference. In this session we’ll create an experiment from scratch using only Python code. Coding a full experiment ¶ Why code an experiment? ¶ ![]()
0 Comments
Leave a Reply. |