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

Method get_version

python_package/brainflow/ml_model.py:246–258  ·  view source on GitHub ↗

get version of brainflow libraries :return: version :rtype: str :raises BrainFlowError

(cls)

Source from the content-addressed store, hash-verified

244
245 @classmethod
246 def get_version(cls) -> str:
247 """get version of brainflow libraries
248
249 :return: version
250 :rtype: str
251 :raises BrainFlowError
252 """
253 string = numpy.zeros(64).astype(numpy.ubyte)
254 string_len = numpy.zeros(1).astype(numpy.int32)
255 res = MLModuleDLL.get_instance().get_version_ml_module(string, string_len, 64)
256 if res != BrainFlowExitCodes.STATUS_OK.value:
257 raise BrainFlowError('unable to request info', res)
258 return string.tobytes().decode('utf-8')[0:string_len[0]]
259
260 def prepare(self) -> None:
261 """prepare classifier"""

Callers 1

mainFunction · 0.45

Calls 3

BrainFlowErrorClass · 0.70
get_version_ml_moduleMethod · 0.65
get_instanceMethod · 0.45

Tested by

no test coverage detected