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

Before Change


        // 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
                    np.all(target_affine == affine)):

After Change


        return niimg

    // We now know that some resampling must be done.
    data = niimg.get_data()

    if target_affine is None:
        target_affine = np.eye(4)
    if target_shape is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: 9223931ed397589ce58178461634313012e16e60
Time: 2014-02-17
Author: virgile.fritsch@gmail.com
File Name: plot_haxby_mass_univariate.py
Class Name:
Method Name: