This contains a SWIG wrapper for Blackrock Microsystems CereStim API.
- SWIG. In Windows, get swigwin.
- 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)
- Make sure swig.exe is on your PATH.
- via system environment variables
- via command prompt, e.g:
set PATH=%PATH%;%HOMEPATH%\Downloads\swigwin-4.1.1\swigwin-4.1.1
- May need to set PYTHON_INCLUDE and PYTHON_LIB
- Open this directory in command prompt. (probably x64 Native Tools Command Prompt for VS 2019)
swig -c++ -python -I"CereStim-API/Binaries/" cerestim/cerestim.i
- Switch to your Anaconda Prompt, activate an appropriate environment, and
cd
to this directory. pip install .
I plan to make a more featureful Python package. For now, the compiled module can be imported directly.
import cerestim