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

Method prepare_session

python_package/brainflow/board_shim.py:1256–1261  ·  view source on GitHub ↗

prepare streaming sesssion, init resources, you need to call it before any other BoardShim object methods

(self)

Source from the content-addressed store, hash-verified

1254 raise BrainFlowError('unable to release sessions', res)
1255
1256 def prepare_session(self) -> None:
1257 """prepare streaming sesssion, init resources, you need to call it before any other BoardShim object methods"""
1258
1259 res = BoardControllerDLL.get_instance().prepare_session(self.board_id, self.input_json)
1260 if res != BrainFlowExitCodes.STATUS_OK.value:
1261 raise BrainFlowError('unable to prepare streaming session', res)
1262
1263 def add_streamer(self, streamer_params: str, preset: int = BrainFlowPresets.DEFAULT_PRESET) -> None:
1264 """Add streamer

Callers 15

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls 3

BrainFlowErrorClass · 0.90
prepare_sessionMethod · 0.65
get_instanceMethod · 0.45

Tested by 3

mainFunction · 0.76
mainFunction · 0.76
mainFunction · 0.76