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

Method insert_marker

python_package/brainflow/board_shim.py:1407–1420  ·  view source on GitHub ↗

Insert Marker to Data Stream :param value: value to insert :type value: float :param preset: preset :type preset: int :return: board id :rtype: int

(self, value: float, preset: int = BrainFlowPresets.DEFAULT_PRESET)

Source from the content-addressed store, hash-verified

1405 return sampling_rate[0]
1406
1407 def insert_marker(self, value: float, preset: int = BrainFlowPresets.DEFAULT_PRESET) -> None:
1408 """Insert Marker to Data Stream
1409
1410 :param value: value to insert
1411 :type value: float
1412 :param preset: preset
1413 :type preset: int
1414 :return: board id
1415 :rtype: int
1416 """
1417
1418 res = BoardControllerDLL.get_instance().insert_marker(value, preset, self.board_id, self.input_json)
1419 if res != BrainFlowExitCodes.STATUS_OK.value:
1420 raise BrainFlowError('unable to insert marker', res)
1421
1422 def is_prepared(self) -> bool:
1423 """Check if session is ready or not

Callers 1

mainFunction · 0.95

Calls 3

BrainFlowErrorClass · 0.90
insert_markerMethod · 0.65
get_instanceMethod · 0.45

Tested by

no test coverage detected