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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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: OpenNMT/OpenNMT-py
Commit Name: 594f66417cf0a2abaead1ce6e5f15a2100441682
Time: 2017-09-21
Author: srush@seas.harvard.edu
File Name: onmt/IO.py
Class Name: ONMTDataset
Method Name: __init__
Project Name: probcomp/bayeslite
Commit Name: 68a7d5553fa4cef09e0159ac5e100a6424172386
Time: 2015-09-24
Author: gremio@acm.org
File Name: src/metamodels/crosscat.py
Class Name: CrosscatMetamodel
Method Name: create_generator