Check if session is ready or not :return: session status :rtype: bool
(self)
| 1420 | raise BrainFlowError('unable to insert marker', res) |
| 1421 | |
| 1422 | def is_prepared(self) -> bool: |
| 1423 | """Check if session is ready or not |
| 1424 | |
| 1425 | :return: session status |
| 1426 | :rtype: bool |
| 1427 | """ |
| 1428 | prepared = numpy.zeros(1).astype(numpy.int32) |
| 1429 | |
| 1430 | res = BoardControllerDLL.get_instance().is_prepared(prepared, self.board_id, self.input_json) |
| 1431 | if res != BrainFlowExitCodes.STATUS_OK.value: |
| 1432 | raise BrainFlowError('unable to check session status', res) |
| 1433 | return bool(prepared[0]) |
| 1434 | |
| 1435 | def get_board_data(self, num_samples=None, preset: int = BrainFlowPresets.DEFAULT_PRESET): |
| 1436 | """Get board data and remove data from ringbuffer |