0984f46bf7f8e4508f5e177cb71ffc68ba178cc5,nilearn/image/resampling.py,,coord_transform,#Any#Any#Any#Any#,89

Before Change


    x, y, z, _ = np.dot(affine, coords)
    if squeeze:
        return x.squeeze(), y.squeeze(), z.squeeze()
    return x, y, z


def get_bounds(shape, affine):
    Return the world-space bounds occupied by an array given an affine.

After Change



    
    squeeze = (not hasattr(x, "__iter__"))
    x = np.asanyarray(x)
    shape = x.shape
    coords = np.c_[np.atleast_1d(x).flat,
                   np.atleast_1d(y).flat,
                   np.atleast_1d(z).flat,
                   np.ones_like(np.atleast_1d(z).flat)].T
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nilearn/nilearn
Commit Name: 0984f46bf7f8e4508f5e177cb71ffc68ba178cc5
Time: 2017-11-04
Author: gael.varoquaux@normalesup.org
File Name: nilearn/image/resampling.py
Class Name:
Method Name: coord_transform


Project Name: PyMVPA/PyMVPA
Commit Name: a0bb74b7e7e8373016caeba358992ff8116705c0
Time: 2015-03-31
Author: michael.hanke@gmail.com
File Name: mvpa2/algorithms/stelzer_clusterthr.py
Class Name:
Method Name: get_thresholding_map


Project Name: sebp/scikit-survival
Commit Name: 95eae9185d8df5dc4d3de030dc19c1d475f18e0f
Time: 2016-12-26
Author: sebp@k-d-w.org
File Name: survival/util.py
Class Name:
Method Name: check_y_survival