df34480652b4a065228ed333f48b09aae4c43179,qcengine/programs/psi4.py,Psi4Executor,compute,#Psi4Executor#Any#Any#,53

Before Change


        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


        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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: MolSSI/QCEngine
Commit Name: 9b1249ec521f1a1831ed2a97710b72b9f9b2cd67
Time: 2019-05-20
Author: malorian@me.com
File Name: qcengine/programs/__init__.py
Class Name:
Method Name: get_program


Project Name: MolSSI/QCEngine
Commit Name: 71e4705d27957dfea5c2156adc10d09af7a22e89
Time: 2019-05-20
Author: malorian@me.com
File Name: qcengine/procedures/base.py
Class Name:
Method Name: get_procedure