Skip to main content

No project description provided

Project description

cerelink

This is a Python wrapper for the CereLink (cbsdk) library to configure, pull data, and receive callbacks from Blackrock Neurotech devices.

Note: If you do not require Central running on the same computer as your Python Blackrock device client, then consider instead using pycbsdk.

Getting Started

  • Download a wheel from the releases page or build it yourself.
  • Activate a Python environment with pip, Cython, and numpy
  • Install the wheel: python -m pip install path\to\filename.whl
  • Test with python -c "from cerelink import cbpy; cbpy.open(parameter=cbpy.defaultConParams())"
    • You might get RuntimeError: -30, Instrument is offline.. That's OK, depending on your device and network settings.
  • See cerebuswrapper for a tool that provides a simplified interface to cerelink.

Build Instructions

  • If you haven't already, build and install CereLink following the main BUILD instructions.
    • Windows: If using Visual Studio then close it.
  • Open a Terminal or Anaconda prompt and activate your Python environment.
  • Your Python environment's Python interpreter (CPython, arch, version) must match that of the eventual machine that will run the package, and it must already have Cython, numpy, pip, setuptools, and wheel installed.
    • We do not set these as explicit dependencies on the package to avoid bundling them so you must install manually.
    • python -m ensurepip
    • python -m pip install --upgrade pip setuptools wheel cython numpy
  • Change to the CereLink directory.
  • Install locally: python -m pip install bindings/Python
  • or, if you are making a wheel to bring to another machine,
    • activate an environment matching the target machine,
    • python -m pip wheel bindings/Python -w bindings/Python/dist
    • The wheels will be in the bindings/Python/dist folder.
    • See the Wiki for more information.

NumPy Compatibility

This project is built against NumPy 2.x. Users must have NumPy 2.0 or later installed. If you are having trouble, try to run the following command and report your results: python -c "import numpy; print(f'NumPy: {numpy.__version__}'); from cerelink import cbpy; print('Success!')"

If you need to support older NumPy 1.x versions, you can build wheels with:

[build-system]
requires = ["setuptools", "wheel", "cython", "oldest-supported-numpy", "setuptools-scm"]

[project]
dependencies = [
  "numpy>=1.23.0,<2.0",
]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cerelink-8.0.2-cp312-cp312-win_arm64.whl (159.7 kB view details)

Uploaded CPython 3.12Windows ARM64

cerelink-8.0.2-cp312-cp312-win_amd64.whl (181.3 kB view details)

Uploaded CPython 3.12Windows x86-64

cerelink-8.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

cerelink-8.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

cerelink-8.0.2-cp312-cp312-macosx_11_0_arm64.whl (389.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

cerelink-8.0.2-cp311-cp311-win_arm64.whl (162.2 kB view details)

Uploaded CPython 3.11Windows ARM64

cerelink-8.0.2-cp311-cp311-win_amd64.whl (182.5 kB view details)

Uploaded CPython 3.11Windows x86-64

cerelink-8.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

cerelink-8.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

cerelink-8.0.2-cp311-cp311-macosx_11_0_arm64.whl (390.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page