Stream Data Reader

Data reader which reads the file format from a stream, without seeking.

class bosdyn.bddf.stream_data_reader.StreamDataReader(outfile)[source]

Bases: BaseDataReader

Data reader which reads the file format from a stream, without seeking.

property read_checksum

64-bit checksum read from the end of the file, or None if not yet read.

property stream_file_index

Return the file index as parsed from the stream.

series_descriptor(series_index)[source]

Return SeriesDescriptor for given series index.

Returns KeyError if no such series exists.

read_data_block()[source]

Read and return next data block.

Returns: DataDescriptor, SeriesDescriptor, data (bytes)

Raises ParseError if there is a problem with the format of the file,

EOFError if the end of the file is reached.

read_next_block()[source]

Read and return next block.

Returns: True, DataDescriptor, data (bytes) for data block Returns: False, DescriptorBlock, None for descriptor block

Raises ParseError if there is a problem with the format of the file,

EOFError if the end of the file is reached.

property series_block_indexes

series_index -> SeriesBlockIndex.

Type:

Returns the current list of SeriesBlockIndexes

series_block_index(series_index)[source]

Returns the SeriesBlockIndexes for the given series_index.

property eof

Returns True if all blocks in the file have been read.