bdf67bc292175a81c63deca27a2056d566db050b,dipy/reconst/dti.py,,restore_fit_tensor,#Any#Any#Any#Any#Any#,1182

Before Change




        // Finally, converge on some solution and use it:
        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

    dti_params.shape = data.shape[:-1] + (12,)
    restore_params = dti_params
    return restore_params

After Change



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

        // If leastsq failed to converge and produced nans, we"ll resort to the
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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


Project Name: nipy/dipy
Commit Name: 9419d215150bcb2679d5047ab53f88139702ac6e
Time: 2015-07-08
Author: rafaelnh21@gmail.com
File Name: dipy/reconst/tests/test_dki.py
Class Name:
Method Name: _wls_iter


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