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"]:
After Change
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
output_data["provenance"]["memory"] = round(output_data.pop("memory") / (1024**3), 3) // Move back to GB
output_data["provenance"]["nthreads"] = output_data.pop("nthreads")