Skip to content

br_stimpy: a python wrapper for Blackrock Neurotech's Cerestim API

License

Notifications You must be signed in to change notification settings

jmw182/br_stimpy

 
 

Repository files navigation

br_stimpy: python wrapper for the Blackrock Neurotech Cerestim API

stimpy icon

Read the complete API documentation here.

Dependencies and Installation

This package depends on the Blackrock Cerestim API (for C++), pybind11, and a C++ compiler.

The Blackrock Cerestim API can be downloaded from their website here. The SDK should be unzipped into the extern/ directory (such that the binary and header files are located in extern/Cerestim-API/Binaries).

Pybind11 is included as a git submodule and can be initialized in the source tree by running git submodule update --init.

Once these dependencies are met, the package can be built and installed with pip from the package directory by running pip install .

Quick Example:

from br_stimpy import stimpy

stim_obj = stimpy.Stimulator()
print(stim_obj.api_version)
stim_obj.connect()
stim_obj.simple_stimulus(
    electrode=1,
    afcf=stimpy.WFType.wf_cathodic_first,
    pulses=1,
    amp1=10,
    amp2=10,
    width1=200,
    width2=200,
    frequency=100,
    interphase=100,
)
stim_obj.disconnect()

See additional examples in the examples directory or read the complete API documentation here.

Maintainer

Maintained by Jeff Weiss and RNEL at the University of Pittsburgh.

Disclaimer

The graphic included in this README is not intended to be an official logo or mascot for this package. The maintainers of this package do not claim any ownership over the copyright of this image or the character depicted within it. The authors of this package are not affiliated with Blackrock Neurotech.

About

br_stimpy: a python wrapper for Blackrock Neurotech's Cerestim API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 55.2%
  • Python 44.8%