MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / get_eda_channels

Method get_eda_channels

python_package/brainflow/board_shim.py:1006–1025  ·  view source on GitHub ↗

get list of eda channels in resulting data table for a board :param board_id: Board Id :type board_id: int :param preset: preset :type preset: int :return: list of eda channels in returned numpy array :rtype: List[int] :raises BrainFlowError:

(cls, board_id: int, preset: int = BrainFlowPresets.DEFAULT_PRESET)

Source from the content-addressed store, hash-verified

1004
1005 @classmethod
1006 def get_eda_channels(cls, board_id: int, preset: int = BrainFlowPresets.DEFAULT_PRESET) -> List[int]:
1007 """get list of eda channels in resulting data table for a board
1008
1009 :param board_id: Board Id
1010 :type board_id: int
1011 :param preset: preset
1012 :type preset: int
1013 :return: list of eda channels in returned numpy array
1014 :rtype: List[int]
1015 :raises BrainFlowError: If this board has no such data exit code is UNSUPPORTED_BOARD_ERROR
1016 """
1017
1018 num_channels = numpy.zeros(1).astype(numpy.int32)
1019 eda_channels = numpy.zeros(512).astype(numpy.int32)
1020
1021 res = BoardControllerDLL.get_instance().get_eda_channels(board_id, preset, eda_channels, num_channels)
1022 if res != BrainFlowExitCodes.STATUS_OK.value:
1023 raise BrainFlowError('unable to request info about this board', res)
1024 result = eda_channels.tolist()[0:num_channels[0]]
1025 return result
1026
1027 @classmethod
1028 def get_ppg_channels(cls, board_id: int, preset: int = BrainFlowPresets.DEFAULT_PRESET) -> List[int]:

Callers

nothing calls this directly

Calls 3

BrainFlowErrorClass · 0.90
get_eda_channelsMethod · 0.65
get_instanceMethod · 0.45

Tested by

no test coverage detected