get version of brainflow libraries :return: version :rtype: str :raises BrainFlowError
(cls)
| 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""" |
no test coverage detected