ObservationDefinition#
Module: iqm.station_control.interface.models.observation
- class ObservationDefinition(*, dut_field, value, unit, uncertainty=None, invalid=False, dut_label, source, tags=[])#
Bases:
ObservationBaseThe content of the observation definition.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Attributes
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
DUT label of the device the observation is about.
How the observation was made, e.g. experiment analysis or manual specification.
Human-readable tags of the observation.
dut_fieldName of the property the observation is about.
valueValue of the observation.
unitSI unit of the value.
uncertaintyUncertainty of the observation value.
invalidFlag indicating if the observation is invalid.
Methods
- Parameters:
dut_field (str)
value (Annotated[bool | str | int | float | complex | ndarray, PlainValidator(func=~exa.common.data.value.validate_value, json_schema_input_type=~typing.Any), PlainSerializer(func=~exa.common.data.value.serialize_value, return_type=PydanticUndefined, when_used=always), WithJsonSchema(json_schema={'type': 'any'}, mode=None)])
unit (str)
uncertainty (Annotated[int | float | complex | ndarray, PlainValidator(func=~exa.common.data.value.validate_value, json_schema_input_type=~typing.Any), PlainSerializer(func=~exa.common.data.value.serialize_value, return_type=PydanticUndefined, when_used=always), WithJsonSchema(json_schema={'type': 'any'}, mode=None)] | None)
invalid (bool)
dut_label (str)
- source: dict[str, Any]#
How the observation was made, e.g. experiment analysis or manual specification.
sourcealways has the key"type"whosestrvalue determines the other contents of the dict. The currently supported source types are: - analysis_source - configuration_source - measurement_source - sequence_analysis_source - specification_source
- model_config = {'extra': 'ignore', 'ser_json_inf_nan': 'constants', 'validate_assignment': True, 'validate_default': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Inheritance
