ab81795ef9a23a0e8c49f94bf5b44b4fb153f869,dipy/reconst/tests/test_shm.py,,test_real_sph_harm_mrtrix,#,84
Before Change
assert_array_almost_equal(rsh(-2, 2, pi / 3, pi / 5),
0.25 * sqrt(15. / (2. * pi)) *
(sin(pi / 5.)) ** 2. * sin(2. * pi / 3))
assert_array_almost_equal(rsh(2, 2, pi, pi / 2),
0.25 * sqrt(15 / (2. * pi)) *
cos(2. * pi) * sin(pi / 2.) ** 2)
assert_array_almost_equal(rsh(-2, 4, pi / 4., pi / 3.),
(3. / 8.) * sqrt(5. / (2. * pi)) *
sin(2. * pi / 4.) *
sin(pi / 3.) ** 2. *
After Change
def test_real_sph_harm_mrtrix():
coef, expected, sphere = mrtrix_spherical_functions()
basis, m, n = real_sph_harm_mrtrix(8, sphere.theta, sphere.phi)
func = np.dot(coef, basis.T)
assert_array_almost_equal(func, expected, 4)
def test_real_sph_harm_fibernav():
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: nipy/dipy
Commit Name: ab81795ef9a23a0e8c49f94bf5b44b4fb153f869
Time: 2013-02-25
Author: mrbago@gmail.com
File Name: dipy/reconst/tests/test_shm.py
Class Name:
Method Name: test_real_sph_harm_mrtrix
Project Name: pymanopt/pymanopt
Commit Name: 04f7a2ae65a7f4c43153452922a8fae2c4b555d1
Time: 2016-07-28
Author: jamiehntownsend@gmail.com
File Name: tests/test_manifold_fixed_rank.py
Class Name: TestFixedRankEmbeddedManifold
Method Name: test_proj
Project Name: SPFlow/SPFlow
Commit Name: 4b8287e9ddaa392a05b793fb7ecdd8187b1c61cf
Time: 2018-08-15
Author: 640000828@qq.com
File Name: src/spn/structure/leaves/conditional/utils.py
Class Name:
Method Name: get_scipy_obj_params
Project Name: SPFlow/SPFlow
Commit Name: efe5f587b4535a9fa389d2883dcd826545283197
Time: 2018-09-11
Author: 640000828@qq.com
File Name: src/spn/structure/leaves/conditional/utils.py
Class Name:
Method Name: get_scipy_obj_params