718df52c79e93904db3ac6e326512d1a5c6942d3,nisl/resampling.py,,resample_img,#Any#Any#Any#Any#Any#,100

Before Change


    if copy:
        // FIXME: "import copy" overwrites input parameter "copy"!
        import copy
        data = copy.copy(data)
        affine = copy.copy(affine)
    if target_affine is None and target_shape is None:
        return niimg
    if (np.all(np.array(target_shape) == data.shape) and

After Change


    // noop cases
    niimg = utils.check_niimg(niimg)
    if copy:
        niimg = Nifti1Image(niimg.get_data(), niimg.get_affine())

    if target_affine is None and target_shape is None:
        return niimg

    shape = utils._get_shape(niimg)
    affine = niimg.get_affine()

    if (np.all(np.array(target_shape) == shape[:3]) and
            np.allclose(target_affine, affine)):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nilearn/nilearn
Commit Name: 718df52c79e93904db3ac6e326512d1a5c6942d3
Time: 2013-05-28
Author: philippe.gervais@inria.fr
File Name: nisl/resampling.py
Class Name:
Method Name: resample_img


Project Name: nilearn/nilearn
Commit Name: a779bcd92e4978429799b3cacde20f5781e1ad3d
Time: 2013-05-31
Author: philippe.gervais@inria.fr
File Name: plot_haxby_searchlight.py
Class Name:
Method Name:


Project Name: nilearn/nilearn
Commit Name: ba93f0b8f1e17955a5990246b53577479ad88165
Time: 2013-05-31
Author: philippe.gervais@inria.fr
File Name: plot_haxby_searchlight.py
Class Name:
Method Name: