brainaccess.core.device_features#

Classes#

DeviceFeatures

What a headset model can do: sensors and electrode layout.

Module Contents#

class brainaccess.core.device_features.DeviceFeatures(device_info)[source]#

What a headset model can do: sensors and electrode layout.

Parameters:

device_info (DeviceInfo) – Information about the headset, from get_device_info().

Raises:

BrainAccessException – If the headset model is not recognized.

Examples

>>> features = DeviceFeatures(manager.get_device_info())
>>> features.electrode_count()
8
electrode_count()[source]#

Get the number of electrodes of the headset.

Returns:

The number of electrodes available for recording.

Return type:

int

has_accel()[source]#

Tell whether the headset has an accelerometer.

Returns:

True if it has an accelerometer.

Return type:

bool

has_gyro()[source]#

Tell whether the headset has a gyroscope.

Returns:

True if it has a gyroscope.

Return type:

bool

is_bipolar()[source]#

Tell whether the electrodes are bipolar.

A bipolar electrode has a positive (P) and a negative (N) contact, and its signal is the difference between the two. The contact status is then reported per contact (ELECTRODE_CONTACT_P and ELECTRODE_CONTACT_N in brainaccess.core.eeg_channel).

Returns:

True if the electrodes are bipolar.

Return type:

bool