pethilt.blogg.se

Psychopy attributee rror
Psychopy attributee rror









psychopy attributee rror

For example, the visual module contains a class to specify and create a window and a large set of visual components (like text, image, and movie components) and the event module contains code to work with “events” such as mouse clicks/movement and keyboard presses. The psychopy package contains different modules for different features. However, as mentioned on the Getting started page, getting the psychopy package to work is not easy, which is why we recommend the “batteries included” standalone version of PsychoPy. 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.

psychopy attributee rror

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.

psychopy attributee rror

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.











Psychopy attributee rror