FieldMetadata

class lsst.ts.salobj.FieldMetadata(name, description, units, type_name, array_length, str_length)

Bases: object

Information about a field.

Parameters:
name : str

Field name.

description : str or None

Description; None if not specified.

units : str or None

Units; None if not specified.

type_name : str

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_length : int

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

str_length : int

Maximum allowed string length; None if unspecified (no limit) or not a string.