예제 #1
0
def test_prox():
    mol = toluene()
    size = (2, 3)
    prox = mol.get_prox(size)
    assert np.isclose(prox[0], 4.381228496800993)
    assert np.isclose(prox[1], 3.3677521592350548)
    assert np.isclose(prox[2], 2.8495247858657446)
예제 #2
0
def test_prox_different_size():
    mol = toluene()
    size = (1, 2)
    prox = mol.get_prox(size)
    assert np.isclose(prox[0], 5.841080507811956)
    assert np.isclose(prox[1], 5.501735547766682)
    assert np.isclose(prox[2], 5.037814140144763)
예제 #3
0
파일: test_prox.py 프로젝트: RMeli/kallisto
def test_prox():
    mol = toluene()
    size = (2, 3)
    prox = mol.get_prox(size)
    assert (prox[0] - 4.381228496800993) < epsilon
    assert (prox[1] - 3.3677521592350548) < epsilon
    assert (prox[2] - 2.8495247858657446) < epsilon
예제 #4
0
파일: test_prox.py 프로젝트: RMeli/kallisto
def test_prox_different_size():
    mol = toluene()
    size = (1, 2)
    prox = mol.get_prox(size)
    assert (prox[0] - 5.841080507811956) < epsilon
    assert (prox[1] - 5.501735547766682) < epsilon
    assert (prox[2] - 5.037814140144763) < epsilon
예제 #5
0
def test_bonds_toluene_partner():
    mol = toluene()
    partner = 1
    bonds = mol.get_bonds(partner)
    assert bonds == [0, 2, 8]
    partner = 5
    bonds = mol.get_bonds(partner)
    assert bonds == [0, 4, 6]
예제 #6
0
def test_stm():
    mol = toluene()
    origin = 6
    partner = 5
    L, bmin, bmax = getClassicalSterimol(mol, origin, partner)
    assert np.isclose(L, 12.714385)
    assert np.isclose(bmin, 3.539068)
    assert np.isclose(bmax, 6.640342)
예제 #7
0
파일: test_stm.py 프로젝트: RMeli/kallisto
def test_stm():
    mol = toluene()
    origin = 6
    partner = 5
    L, bmin, bmax = getClassicalSterimol(mol, origin, partner)
    assert (L - 12.714385) < epsilon
    assert (bmin - 3.539068) < epsilon
    assert (bmax - 6.640342) < epsilon