Installation
Installation can be done using package manager pip and python’s virtual environment module venv.
Note the directory where TEMPO can be found. For this guide, it is located in
/path/to/TEMPO.Create a virtual environment (named
venv1here), then activate the environment:python -m venv venv1 source venv1/bin/activate
Install dependencies:
pip install /path/to/TEMPO
(Optional) If using Jupyter notebook examples found in
/path/to/TEMPO/examples, create kernel for notebook use:ipython kernel install --user --name=venv1
Alternatively, other environment & package managers can also be used. See below for installation steps using conda.
Run the following to ensure all required packages can be discovered:
conda config --append channels conda-forge
Build an environment with conda, and install packages:
conda create --name YOUR_ENV_NAME python=3.**.** conda activate YOUR_ENV_NAME conda install --file /path/to/TEMPO/requirements.txt
Your python version should be version 3, python2 is not supported.
Tests
After installation, unit tests can be performed using the pytest package.
Install pytest:
pip install pytest
Run tests:
pytest /path/to/TEMPO/tempo/tests.py