9152b6588105afc27fd2554cb745ff0652757bfb,dipy/tracking/_utils.py,,move_streamlines,#Any#Any#Any#,523

Before Change


        affine = np.dot(output_space, inv)

    for sl in streamlines:
        yield dot(sl, affine[:3,:3].T) + affine[:3,3]


def reorder_voxels_affine(input_ornt, output_ornt, shape, voxel_size):
    Calculates a linear tranformation equivelent to chaning voxel order

After Change


        inv = np.linalg.inv(input_space)
        affine = np.dot(output_space, inv)

    lin_T = affine[:3, :3].T.copy()
    offset = affine[:3, 3].copy()
    yield
    // End of initialization

    for sl in streamlines:
        yield np.dot(sl, lin_T) + offset


def reorder_voxels_affine(input_ornt, output_ornt, shape, voxel_size):
    Calculates a linear tranformation equivelent to chaning voxel order
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: nipy/dipy
Commit Name: 9152b6588105afc27fd2554cb745ff0652757bfb
Time: 2013-12-23
Author: mrbago@gmail.com
File Name: dipy/tracking/_utils.py
Class Name:
Method Name: move_streamlines


Project Name: etal/cnvkit
Commit Name: b9bb04d10ebefde21de83ae30e63821bf719220f
Time: 2016-05-19
Author: eric.talevich@gmail.com
File Name: cnvlib/reports.py
Class Name:
Method Name: group_by_genes


Project Name: etal/cnvkit
Commit Name: 1281963269c819f22fed98583526df8946d18b4a
Time: 2016-04-20
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: do_import_theta


Project Name: nipy/dipy
Commit Name: dc4956797bfafad14e4a3f1983f9ae4d09b42721
Time: 2014-09-23
Author: girard.gabriel@gmail.com
File Name: dipy/tracking/local/__init__.py
Class Name: LocalTracking
Method Name: _generate_streamlines