If you plan on programming your PsychoPy experiment (so not use the Builder interface), you technically do not need the entire “standalone” PsychoPy package installing the psychopy Python package would suffice and you could just write your experiments in your favorite editor (like Visual Studio Code). Whereas the Builder interface generates such code from your graphical experiment, in the Coder interface you’ll write your experiment using functionality from the psychopy package directly! If you look at this generated Python script closely, you’ll see that most of the code is based on functions and classes from the psychopy Python package. When using the Builder interace, you’ve seen that, “under the hood”, PsychoPy converts your Builder experiment to a Python script, which is then executed to run your experiment. This time, we will create a variant of the classical color-word Stroop task, the emotion-word Stroop task, in which participants are presented with images of emotional facial expressions in combination with words describing emotions that are congruent with the images (e.g., an angry expression with the word “angry”) or incongruent with the images (e.g., a happy exression with the word “angry”). Like in the previous Builder tutorial, we will explain the concepts by walking you through the process of programming a real experiment. It will be a somewhat more “dry” tutorial because we won’t actually create any stimuli or trials in this tutorial, because we’ll save that for the next tutorial. Introduction to the PsychoPy Coder (tutorial) #Īt last, we’ll discuss the PsychoPy Coder! In this tutorial, we explain the basics of the Coder interface.
0 Comments
Leave a Reply. |