Skip to main content

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")

Release files for brainaccess-board 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brainaccess-board 1.0.3
File Size Uploaded
brainaccess_board-1.0.3.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brainaccess-board 1.0.3
File Interpreter ABI Platform
brainaccess_board-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 21.1 kB

Release files / brainaccess_board-1.0.3.tar.gz

Download URL brainaccess_board-1.0.3.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8d26a204c74eefc35190a1d2ff67e63f9c222aee200cdfefbad684826a327b29
BLAKE2b-256 checksum
How to use checksums
201ac81c4d23a4f6162b180f94f75617e660c7f1a6428248be14d6fc05c1420e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / brainaccess_board-1.0.3-py3-none-any.whl

Download URL brainaccess_board-1.0.3-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1db75727559274e42b85ec087340bcc2bf85b9af8217ba0ad05d2f65d26b195c
BLAKE2b-256 checksum
How to use checksums
b8eef53aedeb0ee886406784bede57cb6140c237d221f2423657083a2f4df11a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page