0c2cdb423b95f082bf2846f2aacac2e20db9f7d6,scipy/integrate/tests/test_bvp.py,,test_with_params,#,248

Before Change


    f_test = sl_fun(x_test, sol_test, [1])
    res = sol.sol(x_test, 1) - f_test
    rel_res = res / (1 + np.abs(f_test))
    norm_res = np.linalg.norm(rel_res, axis=0)
    assert_(np.all(norm_res < 1e-3))

    assert_(np.all(sol.res < 1e-3))
    assert_allclose(sol.sol(sol.x), sol.y, rtol=1e-10, atol=1e-10)

After Change


    f_test = sl_fun(x_test, sol_test, [1])
    res = sol.sol(x_test, 1) - f_test
    rel_res = res / (1 + np.abs(f_test))
    norm_res = np.sum(rel_res ** 2, axis=0) ** 0.5
    assert_(np.all(norm_res < 1e-3))

    assert_(np.all(sol.res < 1e-3))
    assert_allclose(sol.sol(sol.x), sol.y, rtol=1e-10, atol=1e-10)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scipy/scipy
Commit Name: 0c2cdb423b95f082bf2846f2aacac2e20db9f7d6
Time: 2016-04-03
Author: nikolay.mayorov@zoho.com
File Name: scipy/integrate/tests/test_bvp.py
Class Name:
Method Name: test_with_params


Project Name: dpressel/mead-baseline
Commit Name: 9902aaa77d03a2a5d1ccc3f8e260dfee2be86819
Time: 2018-06-19
Author: blester125@users.noreply.github.com
File Name: python/tests/test_embeddings.py
Class Name:
Method Name: test_normalize


Project Name: scipy/scipy
Commit Name: 0c2cdb423b95f082bf2846f2aacac2e20db9f7d6
Time: 2016-04-03
Author: nikolay.mayorov@zoho.com
File Name: scipy/integrate/tests/test_bvp.py
Class Name:
Method Name: test_no_params