Building Robust Neuroscience Experiments with Python and PsychoPy
A workshop on building experiments in Python that focuses on code robustness and reusability
In this workshop, you will learn to create robust applications for human and animal neuroscience experiments with Python and PsychoPy. To this end, we will use modern methods and software tools like type-checking (MyPy, Pydantic), complexity measures (radon), automated testing (Pytest) and contiunuous integration (GitHub Actions). The topics are introduced in short lectures and demos, followed by extensive project-based practice sessions to get hands-on experience in developing robust experimental applications. During practice sessions, you will collaborate in small teams with tutors available to help and explain. After each session, we will go trough the materials together and discuss challenges and insights encountered during practice. All course materials will be made available for further independent learning and review. This course is open and free to all neuroscience researchers and previous experience in programming or experimental design is not required. Preparatory materials and software installation instructions will be sent out to all participants before the course.
Learning and participation
Topics
- Designing, configuring and running an experimental script using Python fundamentals and PsychoPy
- Creating a robust and modular application, data validation with type-hinting and Pydantic, automated testing with Pytest
- Communicating with external devices, software packaging, continuous integration
Intended participants
- Researchers and students from all universities are welcome.
- Participants of all skill levels and backgrounds are welcome.
Useful resources for preparation
Certification
Students who attend at least 75% of the course will receive a participation certificate by email at the end of the course.