df34480652b4a065228ed333f48b09aae4c43179,qcengine/programs/psi4.py,Psi4Executor,compute,#Psi4Executor#Any#Any#,53
Before Change
// Dispatch errors, PSIO Errors are not recoverable for future runs
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
output_data["provenance"]["nthreads"] = output_data.pop("nthreads")
output_data["stdout"] = output_data.pop("raw_output", None)
After Change
if output_data["success"] is False:
error_message = output_data["error"]["error_message"]
if "PSIO Error" in error_message:
raise ResourceError(error_message)
elif "SIGSEV" in error_message:
raise RandomError(error_message)
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
output_data["provenance"]["memory"] = round(output_data.pop("memory") / (1024**3), 3) // Move back to GB
output_data["provenance"]["nthreads"] = output_data.pop("nthreads")
output_data["stdout"] = output_data.pop("raw_output", None)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: MolSSI/QCEngine
Commit Name: df34480652b4a065228ed333f48b09aae4c43179
Time: 2019-05-20
Author: malorian@me.com
File Name: qcengine/programs/psi4.py
Class Name: Psi4Executor
Method Name: compute
Project Name: senarvi/theanolm
Commit Name: 0375cb0a69852f21f19c8568b4a37128d4407fc0
Time: 2016-04-12
Author: seppo.git@marjaniemi.com
File Name: theanolm/architecture.py
Class Name: Architecture
Method Name: from_description
Project Name: MolSSI/QCEngine
Commit Name: b0feea56d74b89163b906cff1e7f3060a5c53e2f
Time: 2019-09-10
Author: sjrl423@gmail.com
File Name: qcengine/programs/molpro.py
Class Name: MolproHarness
Method Name: build_input