Skip to content

Latest commit

 

History

History
54 lines (28 loc) · 1.24 KB

File metadata and controls

54 lines (28 loc) · 1.24 KB

Python Build

This markdown is a simple walk-through on how to set up, activate, and update the TennLab Python environment. For information about the TennLab framework see the Getting Started markdown. Most functions between the C++ and Python environments are identical, if a function cannot be used in Python, there is a replacement function to rectify the inconsistency.


Setting Up the Environment

To begin cd to the framework-open directory. Next, run:


UNIX> ./scripts/create_env.sh

This will create the environment necessary for implementing the functions within the C++ build. This may take some time.

Once the creation has completed, the Python environment can be acivated through


UNIX> . pyframework/bin/activate

While this environment is active, any python file that includes the lines:


import neuro
import risp

Will be able to access the TennLab framework's modules.

To exit the python environment just do:


UNIX> deactivate

Updating the Environment

If changes are made to the pybinds or cmake file the envronment can be updated by once again changing to the framework-open directory and running:


UNIX> ./scripts/update_env.sh