brainaccess.core.eeg_channel#

Channel IDs of the values in a data chunk.

A stream delivers its data as one array per channel. Each constant here is a channel ID. Enable a channel with set_channel_enabled(), and find its position in the chunk the callback receives with get_channel_index(). Channels that exist once per electrode (or per axis) use consecutive IDs: add the zero-based electrode (or axis) number to the base ID.

Channel ID

Array dtype

Unit

SAMPLE_NUMBER

uint64

samples

ELECTRODE_MEASUREMENT

float64

µV (kOhm in an impedance mode)

ELECTRODE_CONTACT

uint8

0 or 1

DIGITAL_INPUT

uint8

0 or 1

ACCELEROMETER

float32

m/s²

GYROSCOPE

float32

deg/s

STREAMING

uint8

0 or 1

Use get_stream_channel_data_types() to read the dtypes of the running stream.

Examples

Find the accelerometer axes and the first electrode in a chunk:

from brainaccess.core import eeg_channel

x = manager.get_channel_index(eeg_channel.ACCELEROMETER + 0)
y = manager.get_channel_index(eeg_channel.ACCELEROMETER + 1)
z = manager.get_channel_index(eeg_channel.ACCELEROMETER + 2)
first_electrode = manager.get_channel_index(eeg_channel.ELECTRODE_MEASUREMENT + 0)

Attributes#

Module Contents#

brainaccess.core.eeg_channel.ACCELEROMETER = 2561[source]#
brainaccess.core.eeg_channel.DIGITAL_INPUT = 2049[source]#
brainaccess.core.eeg_channel.ELECTRODE_CONTACT = 1025[source]#
brainaccess.core.eeg_channel.ELECTRODE_CONTACT_N = 1537[source]#
brainaccess.core.eeg_channel.ELECTRODE_CONTACT_P = 513[source]#
brainaccess.core.eeg_channel.ELECTRODE_MEASUREMENT = 1[source]#
brainaccess.core.eeg_channel.GYROSCOPE = 2497[source]#
brainaccess.core.eeg_channel.SAMPLE_NUMBER = 0[source]#
brainaccess.core.eeg_channel.STREAMING = 2625[source]#