handle_output_metadata

qcengine.util.handle_output_metadata(output_data: Union[Dict[str, Any], BaseModel], metadata: Dict[str, Any], raise_error: bool = False, return_dict: bool = True) → Union[Dict[str, Any], BaseModel][source]

Fuses general metadata and output together.

Returns

result – Output type depends on return_dict or a dict if an error was generated in model construction

Return type

dict or pydantic.models.AtomicResult