ObservationDefinition#
- 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.
Module:
iqm.station_control.interface.models.observationAttributes
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:
- 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: ClassVar[ConfigDict] = {'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].