process_sidecar_data¶
- astro_metadata_translator.indexing.process_sidecar_data(content: MutableMapping[str, Any]) ObservationInfo | MutableMapping[str, Any]¶
- astro_metadata_translator.indexing.process_sidecar_data(content: MutableMapping[str, Any], force_metadata: Literal[True]) MutableMapping[str, Any]
- astro_metadata_translator.indexing.process_sidecar_data(content: MutableMapping[str, Any], force_metadata: Literal[False]) ObservationInfo | MutableMapping[str, Any]
Process the content read from a JSON sidecar file.
- Parameters:
- content
dict Data structure stored in JSON sidecar file converted to simple python form.
- force_metadata
bool, optional By default the content returned will match the original form that was used for the sidecar. If this parameter is
Truea sidecar ofObservationInfowill be returned as if it was simple dict content.
- content
- Returns:
- info
ObservationInfoordictof [str,Any] If the sidecar file referred to
ObservationInfothis will return anObservationInfo, otherwise adictwill be returned. This can be overridden using theforce_metadataparameter in which case adictwill always be returned.
- info