makeObservationInfo#
- astro_metadata_translator.makeObservationInfo(*, extensions=None, translator_class=None, **kwargs)#
Construct an
ObservationInfofrom the supplied parameters.- Parameters:
extensions (
dict[str:PropertyDefinition], optional) – Optional extension definitions, indexed by extension name (without theext_prefix, which will be added byObservationInfo).translator_class (
MetadataTranslator-class, optional) – Optional translator class defining the extension properties. If provided, this can be used instead ofextensionsand will be stored in the instance for JSON round-tripping.**kwargs (
Any) – Name-value pairs for any properties to be set. In the case of extension properties, the names should include theext_prefix.
- Return type:
Notes
The supplied parameters should use names matching the property. The type of the supplied value will be checked against the property. Any properties not supplied will be assigned a value of
None.