29e6973e7686c7f9b984903894e585d2cdb6a0d8,qcengine/testing.py,,,#,70

Before Change


    _plugin_import("qcdb") is False,
    reason="Not detecting common driver. Install package if necessary and add to envvar PYTHONPATH")

using_dftd3 = pytest.mark.skipif(
    which("dftd3", return_bool=True) is False,
    reason="Not detecting executable dftd3. Install package if necessary and add to envvar PATH")

using_dftd3_321 = pytest.mark.skipif(
    is_dftd3_new_enough("3.2.1") is False,
    reason="DFTD3 does not include 3.2.1 features. Update package and add to PATH")

After Change




// Figure out what is imported
_programs = {
    "dftd3": which("dftd3", return_bool=True),
    "geometric": _plugin_import("geometric"),
    "psi4": is_psi4_new_enough("1.2"),
    "rdkit": _plugin_import("rdkit"),
    "qcdb": _plugin_import("qcdb"),
    "torchani": _plugin_import("torchani"),
}

def has_program(name):
    return _programs[name]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: MolSSI/QCEngine
Commit Name: 29e6973e7686c7f9b984903894e585d2cdb6a0d8
Time: 2019-02-28
Author: malorian@me.com
File Name: qcengine/testing.py
Class Name:
Method Name:


Project Name: MolSSI/QCEngine
Commit Name: e66fedae6a26142ab7646af86f14bbf1b159f400
Time: 2019-12-08
Author: dgasmith@vt.edu
File Name: qcengine/testing.py
Class Name:
Method Name:


Project Name: chartbeat-labs/textacy
Commit Name: 09bafa1d55acb668b3aeff5f89aee0c6854145dc
Time: 2019-04-28
Author: burtdewilde@gmail.com
File Name: tests/test_dataset_wikipedia.py
Class Name:
Method Name: