9c18021c3851f289b5ed80c5cbdfd20538f6f2df,tests/test_interactions.py,,test_pi_stacking,#,62

Before Change


@pytest.mark.skip
def test_pi_stacking():
    Pi-stacking test
    pi_parallel_count = [pi_stacking(rec,
                                     mol,
                                     cutoff=8)[2].sum() for mol in mols]
    print(pi_parallel_count)
    // assert_array_equal(pi_parallel_count,
    //                    [])

After Change



def test_pi_stacking():
    Pi-stacking test
    lig = next(oddt.toolkit.readfile("sdf", os.path.join(test_data_dir, "data",
                                                         "pdbbind", "10gs",
                                                         "10gs_ligand.sdf")))
    rec = next(oddt.toolkit.readfile("pdb", os.path.join(test_data_dir, "data",
                                                         "pdbbind", "10gs",
                                                         "10gs_pocket.pdb")))
    rec.protein = True
    ring, _, strict_parallel, strict_perpendicular = pi_stacking(rec, lig, cutoff=8)

    print(ring["resnum"])
    assert len(ring) == 6
    assert strict_parallel.sum() == 3
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: oddt/oddt
Commit Name: 9c18021c3851f289b5ed80c5cbdfd20538f6f2df
Time: 2018-06-06
Author: maciek@wojcikowski.pl
File Name: tests/test_interactions.py
Class Name:
Method Name: test_pi_stacking


Project Name: jonas-koehler/s2cnn
Commit Name: f0a3a69ac3a3fad4d1396614a673537e35eea560
Time: 2018-03-29
Author: geiger.mario@gmail.com
File Name: examples/shrec17/test.py
Class Name:
Method Name: main


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: a156be457c3f7d68bc98e4505871d14cd1c45c53
Time: 2017-04-05
Author: jonwayne@google.com
File Name: vision/cloud-client/face_detection/faces_test.py
Class Name:
Method Name: test_main