b7d99dc4d489ff2ec135606cbfa46ce0288fed21,nilearn/plotting/slicers.py,BaseSlicer,init_with_figure,#Any#Any#Any#Any#Any#Any#Any#Any#Any#,210

Before Change


        // deal with "fake" 4D images
        if img is not None and img is not False and len(img.shape) > 3:
            if len(img.shape) == 4 and img.shape[3] == 1:
                data = img.get_data()
                data = data[:,:,:,0]
                img = nibabel.Nifti1Image(data, img.get_affine())
            else:
                raise ValueError("The provided volume has %d dimensions. Only" \
                                 " three dimensional volumes volumes are " \
                                 "supported."%len(data.shape))

After Change


                         cut_coords=None, figure=None, axes=None,
                         black_bg=False, leave_space=False, colorbar=False):
        // deal with "fake" 4D images
        if img is not None and img is not False:
            img = _utils.check_niimg(img, ensure_3d=True)

        cut_coords = cls.find_cut_coords(img, threshold, cut_coords)

        if isinstance(axes, pl.Axes) and figure is None:
            figure = axes.figure
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: nilearn/nilearn
Commit Name: b7d99dc4d489ff2ec135606cbfa46ce0288fed21
Time: 2014-07-02
Author: gael.varoquaux@normalesup.org
File Name: nilearn/plotting/slicers.py
Class Name: BaseSlicer
Method Name: init_with_figure


Project Name: nilearn/nilearn
Commit Name: 530e3ca9148a36982c110007c081a571eff660e1
Time: 2013-05-27
Author: philippe.gervais@inria.fr
File Name: nisl/io/nifti_region.py
Class Name: NiftiMapsMasker
Method Name: transform


Project Name: nilearn/nilearn
Commit Name: dc30d1f385bb6fc231880605e7b35afd56d64c6d
Time: 2013-05-27
Author: philippe.gervais@inria.fr
File Name: nisl/io/nifti_region.py
Class Name: NiftiLabelsMasker
Method Name: transform