Skip to main content

Python library for interfacing with BrainAccess Board

Project description

brainaccess-board

Communication with BrainAccess Board and its database.

Full documentation

Installation

pip install brainaccess-board

Usage

Connect to active database

import brainaccess_board as bb

db, status = bb.db_connect(filename='current')
if status:
    data = db.get_mne()
    print(f"Dictionary of connected devices:\n {data}")
    print(f"MNE structure: {data[next(iter(data))]}")
Dictionary of connected devices:
 {'b2b586a2-da7a-4420-8a6d-cb890e9ba7d7': <RawArray | 8 x 36500 (146.0 s), ~2.
2 MB, data loaded>}

MNE structure: <RawArray | 8 x 36500 (146.0 s), ~2.2 MB, data loaded>

Read previously saved database file

import brainaccess_board as bb

db, status = bb.db_connect(filename='Data_saved_by_BrainAccess_Board.db')
if status:
    data = db.get_mne()
    print(f"Dictionary of devices:\n {data}")
    print(f"MNE structure: {data[next(iter(data))]}")

Communication with BrainAccess Board

import brainaccess_board as bb

bc, commands, status = bb.msg_connect()
print(commands)

if status:
    response = bc.command(commands['test'])
    print(response)

Setup LSL Markers

Creates LSL stream with markers.

import brainaccess_board as bb

stim = bb.stimulation_connect(name="BrainAccessMarkers")

if stim.have_consumers():
    stim.annotate("1")

Project details


Download files

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

Source Distribution

brainaccess_board-1.0.2.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

brainaccess_board-1.0.2-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file brainaccess_board-1.0.2.tar.gz.

File metadata

  • Download URL: brainaccess_board-1.0.2.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for brainaccess_board-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2ed131c9891810d306d1d0bc5a0e030157b42892dfe767743503d5b5b957dd4e
MD5 e73c5d2c92c7fb27d8ec15c5a31fe1ba
BLAKE2b-256 f045d08bc52193944a9d85ded08c7b6e30f748e42dff31f8df5b109e8466d660

See more details on using hashes here.

File details

Details for the file brainaccess_board-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for brainaccess_board-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6547eea84dcd1f698b28781dc902b97c0cf23725d8d7c3ccf79b83f074a97d14
MD5 3c2395234ae481bc7818df33b59b3dcb
BLAKE2b-256 70ddde46f77434b7afee78447a00857055add60357e1d1f35484ef3789e6b3f1

See more details on using hashes here.

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