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

Before Change


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

            self.version_cache[which_prog] = safe_version(exc["stdout"].splitlines()[0].split()[-1])

        return self.version_cache[which_prog]

    def compute(self, input_model: "AtomicInput", config: "TaskConfig") -> "AtomicResult":

After Change



            mobj = re.search(r"Q-Chem\s+([\d.]+)\s+for", exc["stdout"])
            if mobj:
                self.version_cache[which_prog] = safe_version(mobj.group(1))

            // if "QC not defined" in exc["stdout"]:
            else:
                return safe_version("0.0.0")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: MolSSI/QCEngine
Commit Name: 9304f141bc2b51e43fb29a5fe784b53ff798f8fa
Time: 2019-06-04
Author: fangliu.ustc@gmail.com
File Name: qcengine/programs/terachem.py
Class Name: TeraChemHarness
Method Name: get_version


Project Name: MolSSI/QCEngine
Commit Name: 097d08c81c5d01cc89ca2798954008cab3f28c7a
Time: 2020-10-11
Author: dgasmith@icloud.com
File Name: qcengine/programs/qcore.py
Class Name: QcoreHarness
Method Name: get_version