9a4273b7efd7ad5cc593804575247b40b893d8e4,nilearn/_utils/niimg.py,,copy_img,#Any#,114

Before Change


    if not isinstance(img, nibabel.spatialimages.SpatialImage):
        raise ValueError("Input value is not an image")
    
    return new_img_like(img, _safe_get_data(img), img.get_affine().copy(),
                        copy_header=True)

After Change



    if not isinstance(img, nibabel.spatialimages.SpatialImage):
        raise ValueError("Input value is not an image")
    return new_img_like(img, _safe_get_data(img).copy(), img.get_affine().copy(),
                        copy_header=True)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nilearn/nilearn
Commit Name: 9a4273b7efd7ad5cc593804575247b40b893d8e4
Time: 2015-12-02
Author: ainafp@gmail.com
File Name: nilearn/_utils/niimg.py
Class Name:
Method Name: copy_img


Project Name: nilearn/nilearn
Commit Name: 5589b8100e082406950c0c572d772af11fef826c
Time: 2019-03-06
Author: salmabougacha@hotmail.com
File Name: nilearn/regions/region_extractor.py
Class Name:
Method Name: _threshold_maps_ratio


Project Name: nilearn/nilearn
Commit Name: edd3f3051e99774e71bdc44bb86d6e2c2f7197d4
Time: 2019-02-28
Author: salmabougacha@hotmail.com
File Name: nilearn/regions/region_extractor.py
Class Name:
Method Name: _threshold_maps_ratio