Welcome to the PsychoPy course for the department of experimental psychology (PP02) at UGent!
This department course parallels the PsychoPy course that 3rd bachelor students follow at the start of their training as an experimental psychologist. Here you can learn how to construct experiments in the PsychoPy Builder (the GUI version) or program the experiment in the PsychoPy Coder (the scripting environment). Using this resource to learn PsychoPy will facilitate communication with your future master students. In addition, it gives new department members an insight into the practical aspects of conducting experiments with the department equipment. As the main goal of the PsychoPy course is to teach our student the general skill of programming aside from coding experiments, the main focus lies on learning how to write code in Python.
Each chapter in the course consists of a text with the general explanation as well as some easy text exercises (TE). Furthermore, each chapter comes with a set of progressively advanced deeper exercises (DE) and every two or three chapters there is a test. We provide solutions to all exercises and tests, but the best solution will of course be your own.
All of these online training materials come in the form of google documents where you can add comments with your remarks/questions, or you can directly edit the text to suggest a change. We welcome your input! Any further questions and suggestions on the course material can be directed to tom.verguts@ugent.be or vincent.hoofs@ugent.be
Importantly, there are two versions of the course. In the year 2017-2018 we started the course using the Python2 version of PsychoPy. From 2018-2019 on we switched to the Python3 version of PsychoPy. The difference between both is not trivial and scripts written in Python2 will likely not run without errors on Python3 and vice versa. This is mainly due to different behavior of basic functions such as rounding, division, dictionaries and so on. In addition, whereas we relied heavily on list manipulation in the Python2 version, we focus more on numpy arrays in the Python3 version.
Take me to the Python2 version! (2017-2018)
Take me to the Python3 version! (2018 - onwards)
Take me to the updated Python3 version! (2022 - onwards)
Have fun with the course!