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.3.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.3-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brainaccess_board-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 8d26a204c74eefc35190a1d2ff67e63f9c222aee200cdfefbad684826a327b29
MD5 1bb45b877f706a0fb92b5c28d00feb4d
BLAKE2b-256 201ac81c4d23a4f6162b180f94f75617e660c7f1a6428248be14d6fc05c1420e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for brainaccess_board-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1db75727559274e42b85ec087340bcc2bf85b9af8217ba0ad05d2f65d26b195c
MD5 81f8e2f9f44ac88942383025b88e1922
BLAKE2b-256 b8eef53aedeb0ee886406784bede57cb6140c237d221f2423657083a2f4df11a

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