Pod Series Writer¶
Assists with writing POD data values into a series, within a DataWriter.
- class bosdyn.bddf.pod_series_writer.PodSeriesWriter(data_writer, series_type, series_spec, pod_type, dimensions=None, annotations=None, data_block_size=2048)[source]¶
Bases:
object
A class to assist with writing POD data values into a series, within a DataWriter.
- write(timestamp_nsec, sample)[source]¶
Add sample to data block, and write block if block is full.
A block is full if there is no room for an additional sample within the data_block_size.
- Parameters
timestamp_nsec – nsec since unix epoch to timestamp the data
sample – array/vector of POD values to write
Raises DataFormatError if the data is invalid for this series.
- finish_block()[source]¶
If there are samples which haven’t been written to the file, write them now.
- property series_type¶
Return the series_type (string) with which the series was registered.
- property series_spec¶
Return the series_spec ({key -> value}) with which the series was registered.