qblox_scheduler.yaml_utils#
Module containing scheduler YAML utilities.
Attributes#
Functions#
|
Register a Pydantic model to be serialized by ruamel.yaml, with a YAML tag corresponding |
|
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__.