Skip to content

zsong30/py-behav-box

 
 

Repository files navigation

BehavioralChamber DOI

In development python based GUI used to manage rat behavioral box's with customizable GUI and protocol format.

TNEL Logo

Installation

I recommend using anaconda and creating a new environment to use this software.

Use the provided environment.yaml.

Set up your environment using

conda env create -f environment.yaml

Otherwise see requirements.txt for a list of dependencies.

Usage

We use the following code in a batch file to open the GUI.

cd "PATH_TO_GUI"
python BEH_GUI_MAIN.py

GUI Image

Edit the Box for your project!

daqAPI.py correlates port numbers to input/output responses.

Protocols

See "all about protocols" file in PROTOCOLS folder.

Basic Overview:

[EXPERIMENT]

  • set path and names

[SETUP]

  • anything is setup is ran prior to the clock starting

[PROTOCOL]

  • The experimental parameters, runs similar to a for loop

[Conditions]

  • correlates an input from chamber to an output along with timing

Coding style overview

Two classes: GUI and Experiment

Gui holds GUI information and handles communication with behavioral box. Only to be updated if new GUI element needed to either show a new box input/output or if want to show new information.

Experiment handles running the testing. Should be changed to add new options in protocol.

Uses ZMQ to communicate with Open Ephys plugin-GUI. Need updated event broadcaster plugin from development branch (as of April 2019).

Info

This is being actively developed by the TNE-Lab at the University of Minnesota - Twin Cities.

Contact dasilvaf@umn.edu or schat107@umn.edu for more information

About

Open Source Behavior Controller for Rodent Models

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%