This contains a SWIG wrapper for Blackrock Microsystems CereStim API.
Head to the releases page to see if there is a release for you.
If there isn't a pre-made release for you, you can build it yourself. Blackrock only provides binaries for Windows x64 and Windows x86, so you can only target those platforms.
- SWIG. Download swigwin and extract the archive.
- CereStim API (scroll down on support page)
- Copy the extracted folder into this directory (i.e.
CereStimWrapper\CereStim-API)
- Copy the extracted folder into this directory (i.e.
- Python
- A compiler (I think it should match your Python version's compiler)
- Open this directory in command prompt. (probably x64 Native Tools Command Prompt for VS 2019)
- Make sure swig.exe is on your PATH.
- via system environment variables
- via command prompt, e.g:
set PATH=%PATH%;%HOMEDRIVE%\%HOMEPATH%\Downloads\swigwin-4.2.1\swigwin-4.2.1
- May need to set PYTHON_INCLUDE and PYTHON_LIB
swig -c++ -python -I"CereStim-API/Binaries/" cerestim/cerestim.i- Switch to your Anaconda Prompt, activate an appropriate environment, and
cdto this directory. pip install .orpip wheel .to build only the wheel.
The compiled module can be imported directly. Read the Blackrock-provided documentation for more information on the API
import cerestimYou can also find a package that uses this wrapper at https://github.com/CerebusOSS/CereStimDBS