ab81795ef9a23a0e8c49f94bf5b44b4fb153f869,dipy/reconst/tests/test_shm.py,,test_real_sph_harm_fibernav,#,131
Before Change
cos(4. * pi / 8.) * sin(pi / 6.) ** 4. *
sqrt(2))
aa = np.ones((3, 1, 1, 1))
bb = np.ones((1, 4, 1, 1))
cc = np.ones((1, 1, 5, 1))
dd = np.ones((1, 1, 1, 6))
assert_equal(rsh(aa, bb, cc, dd).shape, (3, 4, 5, 6))
After Change
expected *= np.where(m == 0, 1., np.sqrt(2))
fibernav_basis, m, n = real_sph_harm_fibernav(4, sphere.theta, sphere.phi)
assert_array_almost_equal(fibernav_basis, expected)
def test_smooth_pinv():
hemi = hemi_icosahedron.subdivide(2)
In pattern: SUPERPATTERN
Frequency: 7
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_fibernav
Project Name: scikit-image/scikit-image
Commit Name: ef07903e71aa2e4d2968600e3cdd41b4078b040b
Time: 2018-02-14
Author: jni.soma@gmail.com
File Name: skimage/feature/tests/test_blob.py
Class Name:
Method Name: test_blob_dog
Project Name: SheffieldML/GPy
Commit Name: 2c3a53b1740bfbb85a55d827788b1995176bb0b3
Time: 2013-04-23
Author: ibinbei@gmail.com
File Name: GPy/testing/psi_stat_tests.py
Class Name: Test
Method Name: testPsi2
Project Name: scikit-image/scikit-image
Commit Name: ef07903e71aa2e4d2968600e3cdd41b4078b040b
Time: 2018-02-14
Author: jni.soma@gmail.com
File Name: skimage/feature/tests/test_blob.py
Class Name:
Method Name: test_blob_log
Project Name: nilearn/nilearn
Commit Name: 63e16a933bcfc7576a4085750d10438f90d14819
Time: 2016-01-12
Author: danilobzdok@gmail.com
File Name: nilearn/plotting/tests/test_find_cuts.py
Class Name:
Method Name: test_find_cut_coords
Project Name: PyMVPA/PyMVPA
Commit Name: 3c1eafeea79d946575ea5b6b5cb02f945897d2fd
Time: 2009-12-10
Author: michael.hanke@gmail.com
File Name: mvpa/tests/test_mapper.py
Class Name:
Method Name: test_flatten
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