get list of ppg 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 ppg channels in returned numpy array :rtype: List[int] :raises BrainFlowError:
(cls, board_id: int, preset: int = BrainFlowPresets.DEFAULT_PRESET)
| 1026 | |
| 1027 | @classmethod |
| 1028 | def get_ppg_channels(cls, board_id: int, preset: int = BrainFlowPresets.DEFAULT_PRESET) -> List[int]: |
| 1029 | """get list of ppg channels in resulting data table for a board |
| 1030 | |
| 1031 | :param board_id: Board Id |
| 1032 | :type board_id: int |
| 1033 | :param preset: preset |
| 1034 | :type preset: int |
| 1035 | :return: list of ppg channels in returned numpy array |
| 1036 | :rtype: List[int] |
| 1037 | :raises BrainFlowError: If this board has no such data exit code is UNSUPPORTED_BOARD_ERROR |
| 1038 | """ |
| 1039 | |
| 1040 | num_channels = numpy.zeros(1).astype(numpy.int32) |
| 1041 | ppg_channels = numpy.zeros(512).astype(numpy.int32) |
| 1042 | |
| 1043 | res = BoardControllerDLL.get_instance().get_ppg_channels(board_id, preset, ppg_channels, num_channels) |
| 1044 | if res != BrainFlowExitCodes.STATUS_OK.value: |
| 1045 | raise BrainFlowError('unable to request info about this board', res) |
| 1046 | result = ppg_channels.tolist()[0:num_channels[0]] |
| 1047 | return result |
| 1048 | |
| 1049 | @classmethod |
| 1050 | def get_optical_channels(cls, board_id: int, preset: int = BrainFlowPresets.DEFAULT_PRESET) -> List[int]: |
nothing calls this directly
no test coverage detected