c096da57ac6218ec3a4b9131809b19c751f32167,dipy/align/tests/test_imwarp.py,,test_em_2d_demons,#,913

Before Change


        optimizer.full_energy_profile, 10)
    print(energy_profile)

    if using_vc_sse2():
        expected_profile = \
            [2.50773393, 3.26942324, 1.81684393, 5.44878881, 40.0195918,
             31.87030788, 25.15710409, 29.82206485, 196.33114499, 213.86419995]

After Change


        optimizer.full_energy_profile, 10)
    print(energy_profile)

    build_flags = config.get_info("build_flags")

    if build_flags["USING_VC_SSE2"]:
        expected_profile = \
            [2.50773393, 3.26942324, 1.81684393, 5.44878881, 40.0195918,
             31.87030788, 25.15710409, 29.82206485, 196.33114499, 213.86419995]
    elif build_flags["USING_GCC_SSE2"]:
        expected_profile = \
            [2.50773393, 3.26942352, 1.8168445, 5.44879264, 40.01956373,
             31.65616398, 32.43115903, 35.24130742, 192.89072697, 195.456909]
    else:
        return

    assert_array_almost_equal(energy_profile, np.array(expected_profile), decimal=5)

if __name__=="__main__":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 10

Non-data size: 8

Instances


Project Name: nipy/dipy
Commit Name: c096da57ac6218ec3a4b9131809b19c751f32167
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_em_2d_demons


Project Name: nipy/dipy
Commit Name: c096da57ac6218ec3a4b9131809b19c751f32167
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_ssd_3d_gauss_newton


Project Name: nipy/dipy
Commit Name: c096da57ac6218ec3a4b9131809b19c751f32167
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_em_3d_gauss_newton


Project Name: nipy/dipy
Commit Name: c096da57ac6218ec3a4b9131809b19c751f32167
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_em_2d_gauss_newton


Project Name: nipy/dipy
Commit Name: c096da57ac6218ec3a4b9131809b19c751f32167
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_ssd_2d_demons


Project Name: nipy/dipy
Commit Name: c096da57ac6218ec3a4b9131809b19c751f32167
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_ssd_3d_demons


Project Name: nipy/dipy
Commit Name: c096da57ac6218ec3a4b9131809b19c751f32167
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_em_3d_demons


Project Name: nipy/dipy
Commit Name: c096da57ac6218ec3a4b9131809b19c751f32167
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_ssd_2d_gauss_newton


Project Name: nipy/dipy
Commit Name: c096da57ac6218ec3a4b9131809b19c751f32167
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_cc_3d


Project Name: nipy/dipy
Commit Name: c096da57ac6218ec3a4b9131809b19c751f32167
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_cc_2d