e2bf248a400175ac1a153cdba62147e9162a710f,nilearn/image/resampling.py,,resample_img,#,291

Before Change



        indices = []
        for tmpo, tmpb in zip(offsets[:3], b):
            indices.append()
        slices=1
        // for each dimension:
        //     Save index as translation + offset
        //       (if not flipped: offset before, else: offset after)

After Change


        // TODO: add check that off.stop + b  <= shape ; place image in location
        // but throw warning that the affine may be wrong because the image is
        // being put outside the FOV and is non recoverable.
        indices = tuple(slice(off.start + dim_b, off.stop + dim_b)
                        for off, dim_b in zip(offsets[:3], b[:3]))
        resampled_data[indices] = cropped_img.get_data()

    else:
        // Iterate over a set of 3D volumes, as the interpolation problem is
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nilearn/nilearn
Commit Name: e2bf248a400175ac1a153cdba62147e9162a710f
Time: 2019-04-17
Author: gkiar07@gmail.com
File Name: nilearn/image/resampling.py
Class Name:
Method Name: resample_img


Project Name: MycroftAI/padatious
Commit Name: a1383be585a1798a3333139c4c1be149d3c5a454
Time: 2017-09-15
Author: matthew3311999@gmail.com
File Name: padatious/util.py
Class Name:
Method Name: resolve_conflicts


Project Name: ANSSI-FR/SecuML
Commit Name: 39efccc696a1c20745a52cc50935cdc24f92230d
Time: 2019-05-09
Author: anael.beaugnon@ssi.gouv.fr
File Name: secuml/core/classif/classifiers/__init__.py
Class Name: Classifier
Method Name: _predict_streaming