Bpod is a system from Sanworks for precise measurement of small animal behavior. It is a family of open source hardware devices which includes also software and firmware to control these devices.
Bpod software was originally developed in Matlab providing retro-compatibility with the [BControl](http://brodywiki.princeton.edu/bcontrol/index.php/Main_Page`) system.
Python is one of the most popular programming languages today [1]. This is special true for the science research community because it is an open language, easy to learn, with a strong support community and with a lot of libraries available.
pybpod-api is a Python library that enables communication with the latest Bpod device version.
You can use it directly as a CLI (Command Line Interface) or use your favorite GUI to interact with it.
The Scientific Software Platform (SWP) from the Champalimaud Foundation provides technical know-how in software engineering and high quality software support for the Neuroscience and Cancer research community at the Champalimaud Foundation.
We typical work on computer vision / tracking, behavioral experiments, image registration and database management.
- @cajomferro Carlos Mão de Ferro
- @JBauto João Baúto
- @UmSenhorQualquer Ricardo Ribeiro
- @MicBoucinha Luís Teixeira
pybpod-api is a python port of the Bpod Matlab project.
All examples and Bpod's state machine and communication logic were based on the original version made available by Josh Sanders.
This is Open Source software with an MIT license.
-
Duplicate user_settings.py.template and save it as user_settings.py
Define the PYBPOD_SERIAL_PORT attribute with your machine serial port where Bpod is connected to Define the API_LOG_LEVEL with logging.DEBUG if you want detailed logging for the API
-
On the project root folder run:
pip3 install -r requirements.txt --upgrade # installs dependencies pip3 install . # installs this API
-
Then move to the examples folder and run example:
cd PROJECT_FOLDER/examples/function_examples python3 add_trial_events.py # run example