This repository contains code for running experiments on the LEAP rigs, including open and closed-loop optogenetic stimulation and realtime SLEAP inference.
- Install Anaconda or Miniconda.
- Clone this repo and create the environment:
git clone https://github.com/murthylab/leap_rigs
cd leap_rigs
conda env create -f environment.yml
This installs all dependencies including Motif, CUDA and SLEAP into an environment named leap_rigs
.
To install to a different environment name:
conda env create -f environment.yml -n my_env
To update, just git pull
to grab new changes.
Note: This will not install the scripts as a package, so you must be in this directory to run the experiment scripts.
- Activate the environment:
conda activate leap_rigs
- Run the experiment script you want to use:
python pilot_expt.py
See pilot_expt.py
for a test experiment setup.
See sandbox.py
for ad-hoc usage.