f80a478bd5588092249acba4077c3fb18e500d95,dipy/align/tests/test_imwarp.py,,test_em_2d_gauss_newton,#,798
Before Change
m = optimizer.get_map()
assert_equal(mapping, m)
energy_profile = np.array(optimizer.full_energy_profile)[::4]
if floating is np.float32:
expected_profile = \
[2.50773392e+00, 1.19082175e+00, 3.44192871e-01, 4.26320783e-01,
3.77910892e-02, 3.34404847e-01, 3.00400618e+00, 2.56292691e+00,
2.10458398e+00, 2.45479897e+00, 6.14513257e+01, 5.38091115e+01,
5.27868250e+01]
else:
expected_profile = \
[2.50773436, 1.19082577, 0.34422934, 0.19543193, 0.23659461,
0.41145348, 3.56414698, 3.02325691, 1.74649377, 1.8172007,
2.09930208, 53.06513917, 49.4088898 ]
assert_array_almost_equal(energy_profile, np.array(expected_profile))
def test_em_3d_demons():
After Change
optimizer.full_energy_profile, 10)
print(energy_profile)
if using_vc_sse2():
expected_profile = \
[2.50773392, 0.41762978, 0.30900322, 0.14818498, 0.44620725,
1.53134054, 1.42115728, 1.66358267, 1.184265, 46.13635772]
else:
expected_profile = \
[2.50773392, 0.41763383, 0.30908578, 0.06241115, 0.11573476,
2.48475885, 1.10053769, 0.9270271, 49.37186785, 44.72643467]
assert_array_almost_equal(energy_profile, np.array(expected_profile), decimal=5)
def test_em_3d_demons():
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 7
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_gauss_newton
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_ssd_3d_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_em_3d_gauss_newton
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_3d_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_ssd_3d_gauss_newton
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_ssd_2d_demons