This is a wrapper around CereLink and cbhwlib, to facilitate data transfer from Blackrock NSP hardware in a setup that requires continuous flow. This C++ library was written with tight Python interactions in mind.
Assuming that CereLink has been installed to /opt/CereLink/
, and that there is a conda environment running, set up the build environment with
cmake -H. -B_builds/Release -DCMAKE_INSTALL_PREFIX="/opt/CereLink/" -Drun_tests=ON -DPYTHON="$CONDA_PREFIX/bin/python" -DCMAKE_BUILD_TYPE=Release
and build and install with
cmake --build _builds/Release --target install
(or cd
to _builds/Release
and run make
and make install
).
There are unit tests that can be run with
make test
Note that some tests may require an NSP or NPlayServer on the network, sending data,
and configured with included settings (e.g. tests/CereConn/test_NSP_settings_01.ccf
).
In addition, there are Python tests, in python/tests
.
For use of cc::CereConn in C++ projects, look at tests/CereConn/testCereConnRecord.cpp
.
For use of cere_conn.CereConn cere_conn , the Python module, look at python/tests
.
Author: Jonas B. Zimmermann
python/tests/spike_band_power/test_01.py
for usage examples.