bci.reader.drivers package

Submodules

bci.reader.drivers.binary module

class bci.reader.drivers.binary.BinaryDriver(stream)

Bases: object

Represents a driver to read sample files of binary format.

format

Format of sample files this driver can handle.

Type

str

stream

Stream representing the sample file.

Type

IOBase

format = 'binary'
read_snapshot()
read_user()

bci.reader.drivers.find_driver module

bci.reader.drivers.find_driver.find_driver(format)

Finds the driver corresponding to format.

Parameters

format (str) – Format of the sample file.

Returns

The driver corresponding to format.

Raises

ValueError – If format is unknown.

bci.reader.drivers.protobuf module

class bci.reader.drivers.protobuf.ProtobufDriver(stream)

Bases: object

Represents a driver to read sample files of protobuf format.

format

Format of sample files this driver can handle.

Type

str

stream

Stream representing the sample file.

Type

IOBase

format = 'protobuf'
read_snapshot()
read_user()

Module contents

bci.reader.drivers.find_driver(format)

Finds the driver corresponding to format.

Parameters

format (str) – Format of the sample file.

Returns

The driver corresponding to format.

Raises

ValueError – If format is unknown.