0003e408505b4634961af84c1bd0f1503fe92f95,qcengine/programs/qchem.py,QChemHarness,get_version,#QChemHarness#,61

Before Change


        which_prog = which("qchem")
        if which_prog not in self.version_cache:
            with popen([which_prog, "-h"], popen_kwargs={"env": self._get_qc_path()}) as exc:
                exc["proc"].wait(timeout=15)

            if "QC not defined" in exc["stdout"]:
                return safe_version("0.0.0")

After Change


        self.found(raise_error=True)

        // Get the node configuration
        config = get_config()

        which_prog = which("qchem")
        if which_prog not in self.version_cache:
            success, exc = execute(
                [which_prog, "v.in"],
                {"v.in": "$rem\n"},
                scratch_directory=config.scratch_directory,
                environment=self._get_qc_path(),
                timeout=15,
            )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: MolSSI/QCEngine
Commit Name: 0003e408505b4634961af84c1bd0f1503fe92f95
Time: 2020-07-30
Author: lori.burns@gmail.com
File Name: qcengine/programs/qchem.py
Class Name: QChemHarness
Method Name: get_version


Project Name: tryolabs/luminoth
Commit Name: 8a600f790ba68880e9a76a5eda33a3f4fccd22c4
Time: 2017-11-17
Author: javirey@gmail.com
File Name: luminoth/eval.py
Class Name:
Method Name: evaluate


Project Name: tryolabs/luminoth
Commit Name: 8a600f790ba68880e9a76a5eda33a3f4fccd22c4
Time: 2017-11-17
Author: javirey@gmail.com
File Name: luminoth/utils/predicting.py
Class Name:
Method Name: get_predictions