get list of exg 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 eeg channels in returned numpy array :rtype: List[int] :raises BrainFlowError:
(cls, board_id: int, preset: int = BrainFlowPresets.DEFAULT_PRESET)
| 916 | |
| 917 | @classmethod |
| 918 | def get_exg_channels(cls, board_id: int, preset: int = BrainFlowPresets.DEFAULT_PRESET) -> List[int]: |
| 919 | """get list of exg channels in resulting data table for a board |
| 920 | |
| 921 | :param board_id: Board Id |
| 922 | :type board_id: int |
| 923 | :param preset: preset |
| 924 | :type preset: int |
| 925 | :return: list of eeg channels in returned numpy array |
| 926 | :rtype: List[int] |
| 927 | :raises BrainFlowError: If this board has no such data exit code is UNSUPPORTED_BOARD_ERROR |
| 928 | """ |
| 929 | |
| 930 | num_channels = numpy.zeros(1).astype(numpy.int32) |
| 931 | exg_channels = numpy.zeros(512).astype(numpy.int32) |
| 932 | |
| 933 | res = BoardControllerDLL.get_instance().get_exg_channels(board_id, preset, exg_channels, num_channels) |
| 934 | if res != BrainFlowExitCodes.STATUS_OK.value: |
| 935 | raise BrainFlowError('unable to request info about this board', res) |
| 936 | result = exg_channels.tolist()[0:num_channels[0]] |
| 937 | return result |
| 938 | |
| 939 | @classmethod |
| 940 | def get_emg_channels(cls, board_id: int, preset: int = BrainFlowPresets.DEFAULT_PRESET) -> List[int]: |
nothing calls this directly
no test coverage detected