81e6b8c24d0c07a4034c523751221e7951c00b5d,dipy/reconst/dti.py,,nlls_fit_tensor,#Any#Any#Any#Any#Any#,1031

Before Change


                                     weighting, sigma),
                               disp=False)

        this_dti = np.concatenate([np.ravel(x) for x in
                                   decompose_tensor(
                        from_lower_triangular(this_tensor[:6]).reshape(3,3))])
        dti_params[vox] = this_dti

    nlls_params = wrap(dti_params)
    return nlls_params

After Change


        // The parameters are the evals and the evecs:
        evals,evecs=decompose_tensor(from_lower_triangular(this_tensor[:6]))
        dti_params[vox, :3] = evals
        dti_params[vox, 3:] = evecs.ravel()

    nlls_params = wrap(dti_params)
    return nlls_params
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nipy/dipy
Commit Name: 81e6b8c24d0c07a4034c523751221e7951c00b5d
Time: 2013-07-21
Author: arokem@gmail.com
File Name: dipy/reconst/dti.py
Class Name:
Method Name: nlls_fit_tensor


Project Name: scikit-image/scikit-image
Commit Name: c890a06b4ef71d5827ff9a399e203a37af0191a5
Time: 2018-12-06
Author: devel@sciunto.org
File Name: skimage/exposure/exposure.py
Class Name:
Method Name: _bincount_histogram


Project Name: nipy/dipy
Commit Name: bdf67bc292175a81c63deca27a2056d566db050b
Time: 2013-07-21
Author: arokem@gmail.com
File Name: dipy/reconst/dti.py
Class Name:
Method Name: restore_fit_tensor