Exemplo n.º 1
0
def test_stress(line, expected, do_test_stress):
    """Test reading a particular line for parsing stress"""
    do_test_stress(line, vop.convert_vasp_outcar_stress(expected))
Exemplo n.º 2
0
def test_convert_stress(stress, expected):
    """Test the stress conversion function"""
    assert np.allclose(vop.convert_vasp_outcar_stress(stress), expected)