# FixedLength¶

class ccsdspy.FixedLength(fields)[source]

Bases: object

Define a fixed length packet to decode binary data.

In the context of engineering and science, fixed length packets correspond to data that is of the same layout every time. Examples of this include sensor time series, status codes, or error messages.

Parameters: fields : list of ccsdspy.PacketField Layout of packet fields contained in the definition.

Methods Summary

 load(file) Decode a file-like object containing a sequence of these packets.

Methods Documentation

load(file)[source]

Decode a file-like object containing a sequence of these packets.

Parameters: file: str Path to file on the local file system, or file-like object astropy.table.Table containing one column for each field