if output_data["success"] is False:
if "PSIO Error" in output_data["error"]:
raise ValueError(output_data["error"])
// Move several pieces up a level
if output_data["success"]:
output_data["provenance"]["memory"] = round(output_data.pop("memory") / (1024**3), 3) // Move back to GB
After Change
elif "TypeError: set_global_option" in error_message:
raise InputError(error_message)
elif "RHF reference is only for singlets" in error_message:
raise InputError(error_message)
else:
raise UnknownError(error_message)
// Move several pieces up a level