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 |
|---|---|---|
|
|
samples |
|
|
µV (kOhm in an impedance mode) |
|
|
0 or 1 |
|
|
0 or 1 |
|
|
m/s² |
|
|
deg/s |
|
|
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)