FieldMetadata

class lsst.ts.salobj.FieldMetadata(name: str, description: str | None, units: str | None, type_name: str, array_length: int | None)

Bases: object

Information about a field.

Parameters:
namestr

Field name.

descriptionstr or None

Description; None if not specified.

unitsstr or None

Units; None if not specified.

type_namestr

Data type name from the IDL file, e.g. “string<8>”, “float”, “double”. This may not match the Python data type of the field. For instance dds maps most integer types to int, and both “float” and “double” to double.

array_lengthint

Number of elements if an array; None if not an array.