38a2c28f9885e13e080cd04ec1b967a19c427d63,qcengine/programs/terachem.py,TeraChemExecutor,found,#Any#,66

Before Change



    @staticmethod
    def found(raise_error=False) -> bool:
        is_found = which("terachem", return_bool=True)

        if not is_found and raise_error:
             raise ModuleNotFoundError("Could not find TeraChem in the Python path.")
        else:
             return is_found

    def get_version(self) -> str:
        self.found(raise_error=True)

        which_terachem = which("terachem")

After Change



    @staticmethod
    def found(raise_error=False) -> bool:
        return which("terachem", return_bool=True, raise_error=raise_error, raise_msg="Please install via http://www.petachem.com/index.html")

    def get_version(self) -> str:
        self.found(raise_error=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: MolSSI/QCEngine
Commit Name: 38a2c28f9885e13e080cd04ec1b967a19c427d63
Time: 2019-05-16
Author: lori.burns@gmail.com
File Name: qcengine/programs/terachem.py
Class Name: TeraChemExecutor
Method Name: found


Project Name: MolSSI/QCEngine
Commit Name: 38a2c28f9885e13e080cd04ec1b967a19c427d63
Time: 2019-05-16
Author: lori.burns@gmail.com
File Name: qcengine/programs/rdkit.py
Class Name: RDKitExecutor
Method Name: found


Project Name: MolSSI/QCEngine
Commit Name: 38a2c28f9885e13e080cd04ec1b967a19c427d63
Time: 2019-05-16
Author: lori.burns@gmail.com
File Name: qcengine/programs/psi4.py
Class Name: Psi4Executor
Method Name: found


Project Name: MolSSI/QCEngine
Commit Name: 38a2c28f9885e13e080cd04ec1b967a19c427d63
Time: 2019-05-16
Author: lori.burns@gmail.com
File Name: qcengine/programs/torchani.py
Class Name: TorchANIExecutor
Method Name: found