784bee5baeb5f63544079f93311534667fab30e7,dipy/reconst/tests/test_csdeconv.py,,test_forward_sdeconv_mat,#,185

Before Change


    expected = np.diag([0, 2, 2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4])
    npt.assert_array_equal(mat, expected)

    mat = forward_sdeconv_mat([0, 2, 4, 6, 8])
    npt.assert_equal(mat.shape, (45, 45))


if __name__ == "__main__":

After Change



    sh_order = 8
    expected_size = (sh_order + 1) * (sh_order + 2) / 2
    r_rh = np.arange(0, sh_order + 1, 2)
    m, n = sph_harm_ind_list(sh_order)
    mat = forward_sdeconv_mat(r_rh)
    npt.assert_equal(mat.shape, (expected_size, expected_size))
    npt.assert_array_equal(mat.diagonal(), n)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nipy/dipy
Commit Name: 784bee5baeb5f63544079f93311534667fab30e7
Time: 2013-11-14
Author: mrbago@gmail.com
File Name: dipy/reconst/tests/test_csdeconv.py
Class Name:
Method Name: test_forward_sdeconv_mat


Project Name: biotite-dev/biotite
Commit Name: e71e000fe89c58396e1d61f238912282fbbde810
Time: 2019-11-11
Author: bauer@cbs.tu-darmstadt.de
File Name: tests/structure/test_density.py
Class Name:
Method Name: test_density_weights


Project Name: epfl-lts2/pygsp
Commit Name: 334f7e5d6699b9adc9a6b6d64929a070c958fed2
Time: 2016-04-29
Author: lionel.martin@epfl.ch
File Name: pygsp/plotting.py
Class Name:
Method Name: pg_plot_signal