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

Method get_eog_channels

python_package/brainflow/board_shim.py:984–1003  ·  view source on GitHub ↗

get list of eog 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 eog 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

982
983 @classmethod
984 def get_eog_channels(cls, board_id: int, preset: int = BrainFlowPresets.DEFAULT_PRESET) -> List[int]:
985 """get list of eog channels in resulting data table for a board
986
987 :param board_id: Board Id
988 :type board_id: int
989 :param preset: preset
990 :type preset: int
991 :return: list of eog channels in returned numpy array
992 :rtype: List[int]
993 :raises BrainFlowError: If this board has no such data exit code is UNSUPPORTED_BOARD_ERROR
994 """
995
996 num_channels = numpy.zeros(1).astype(numpy.int32)
997 eog_channels = numpy.zeros(512).astype(numpy.int32)
998
999 res = BoardControllerDLL.get_instance().get_eog_channels(board_id, preset, eog_channels, num_channels)
1000 if res != BrainFlowExitCodes.STATUS_OK.value:
1001 raise BrainFlowError('unable to request info about this board', res)
1002 result = eog_channels.tolist()[0:num_channels[0]]
1003 return result
1004
1005 @classmethod
1006 def get_eda_channels(cls, board_id: int, preset: int = BrainFlowPresets.DEFAULT_PRESET) -> List[int]:

Callers

nothing calls this directly

Calls 3

BrainFlowErrorClass · 0.90
get_eog_channelsMethod · 0.65
get_instanceMethod · 0.45

Tested by

no test coverage detected