qblox_scheduler.yaml_utils#

Module containing scheduler YAML utilities.

Attributes#

Functions#

register_model(→ None)

Register a Pydantic model to be serialized by ruamel.yaml, with a YAML tag corresponding

register_legacy_instruments(→ None)

Register MeasurementControl and InstrumentCoordinator with the global YAML object

Module Contents#

register_model(cls: type[pydantic.BaseModel], yaml_obj: ruamel.yaml.YAML) None[source]#

Register a Pydantic model to be serialized by ruamel.yaml, with a YAML tag corresponding to the name of the model class.

The implementation mirrors the original register_class(), but unlike that it doesn’t use to_yaml/from_yaml on the target class, instead relying solely on __getstate__ and __setstate__.

register_legacy_instruments(yaml_obj: ruamel.yaml.YAML) None[source]#

Register MeasurementControl and InstrumentCoordinator with the global YAML object to be de/serialized correctly.

yaml[source]#