ResultFormat

adrio.adrio.ResultFormat(
    self,
    shape,
    value_dtype,
    validation,
    is_date_value=False,
)

Metadata about an ADRIO result.

ResultFormat is a frozen dataclass. It is generic in the dtype of the result’s data (ValueT).

Attributes

shape: DataShape

The expected shape of the result array.

value_dtype: type[ValueT]

The dtype of the data contained in the result array.

validation: ArrayValidation[ValueT]

A validation function for a result array.

is_date_value: bool

True if the result is packed in a date/value array. If the result is a date/value array, the type ValueT reflects the inner value type.