3789de488113316b303be36e2f7d4bb2e405f47f,dipy/io/tests/test_utils.py,,test_read_img_arr_or_path,#,143

Before Change




def test_read_img_arr_or_path():
    data = np.zeros((4, 4, 4, 3))
    aff = np.eye(4)
    img = Nifti1Image(data, aff)
    path = tempfile.NamedTemporaryFile().name + ".nii.gz"

After Change




def test_read_img_arr_or_path():
    data = np.random.rand(4, 4, 4, 3)
    aff = np.eye(4)
    aff[:3, :] = np.random.randn(3, 4)
    img = Nifti1Image(data, aff)
    path = tempfile.NamedTemporaryFile().name + ".nii.gz"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: nipy/dipy
Commit Name: 3789de488113316b303be36e2f7d4bb2e405f47f
Time: 2020-10-13
Author: arokem@gmail.com
File Name: dipy/io/tests/test_utils.py
Class Name:
Method Name: test_read_img_arr_or_path


Project Name: arraiy/torchgeometry
Commit Name: 6a4fa82792bddc6126eaf944956f49f0a0cb7ca7
Time: 2020-12-22
Author: edgar.riba@gmail.com
File Name: test/filters/test_sobel.py
Class Name: TestSpatialGradient3d
Method Name: test_gradcheck


Project Name: luispedro/mahotas
Commit Name: 93663c2cc8c0c8bc3c6f28c27679707305948c80
Time: 2010-05-11
Author: lpc@cmu.edu
File Name: tests/test_texture.py
Class Name:
Method Name: test_cooccurence