Make sure you have fftw3-dev
installed for computing Fourier transforms. On Debian-based OSes:
sudo apt install fftw3-dev
Build conda
environment:
conda env create
Install testing dependencies with:
conda env update -f test-environment.yml
Set environment variable so Tensorflow knows where to look for things:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/
To run tests you'll need a CNN model to use. ifcb-analysis
is configured to work with Keras models, which, for testing purposes, you can copy into src/python/tests/data
.
With that in place, run:
pytest