f80a478bd5588092249acba4077c3fb18e500d95,dipy/align/tests/test_imwarp.py,,test_em_2d_demons,#,901

Before Change


    m = optimizer.get_map()
    assert_equal(mapping, m)
    energy_profile = np.array(optimizer.full_energy_profile)[::2]
    if floating is np.float32:
        expected_profile = \
            [2.50773393, 4.59842633, 3.94307794, 3.09777134, 2.57982865,
             3.24937725, 0.42507437, 2.59523238, 29.8114103, 34.94621044,
             27.49480758, 38.64567224, 28.14442977, 25.34123425, 36.95076494,
             192.36444764, 202.90168694, 188.44310016, 199.73662253, 193.81159141]
    else:
        expected_profile = \
            [2.50773436, 4.59843299, 3.94307817, 3.09777401, 2.57983375,
             3.24936765, 0.42506361, 2.5952175, 29.81143768, 33.42148555,
             29.04341476, 29.44541313, 27.39435491, 27.62029669, 187.34889413,
             206.57998934, 198.48724278, 188.65410869, 177.83943006]
    assert_array_almost_equal(energy_profile, np.array(expected_profile))

if __name__=="__main__":
    test_scale_space_exceptions()

After 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]
    else:
        expected_profile = \
            [2.50773393, 3.26942352, 1.8168445, 5.44879264, 40.01956373,
             31.65616398, 32.43115903, 35.24130742, 192.89072697, 195.456909]
    assert_array_almost_equal(energy_profile, np.array(expected_profile), decimal=5)

if __name__=="__main__":
    test_scale_space_exceptions()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: nipy/dipy
Commit Name: f80a478bd5588092249acba4077c3fb18e500d95
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: f80a478bd5588092249acba4077c3fb18e500d95
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_cc_2d


Project Name: nipy/dipy
Commit Name: f80a478bd5588092249acba4077c3fb18e500d95
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: f80a478bd5588092249acba4077c3fb18e500d95
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