acdb39c2f40fa90a033e895f09d8d02b02e85e9b,dipy/reconst/fwdti.py,,nlls_fit_tensor,#Any#Any#Any#Any#Any#Any#Any#,497

Before Change


        // If leastsq failed to converge and produced nans, we"ll resort to the
        // WLS solution in this voxel:
        except np.linalg.LinAlgError:
            evals, evecs = decompose_tensor(
                              from_lower_triangular(start_params[:6]))
            fw_params[vox, :3] = evals
            fw_params[vox, 3:] = evecs.ravel()
            fw_params[vox, 12] = start_params[7]
            fw_params[vox, 13] = np.exp(-start_params[6])

After Change


                                                cholesky))
                                                
        if cholesky:
            this_tensor[:6] = cholesky_to_lower_triangular(this_tensor[:6])
            this_tensor[7] =  0.5 * (1 + np.sin(this_tensor[7] - np.pi/2))

        // The parameters are the evals and the evecs:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nipy/dipy
Commit Name: acdb39c2f40fa90a033e895f09d8d02b02e85e9b
Time: 2016-08-29
Author: rafaelnh21@gmail.com
File Name: dipy/reconst/fwdti.py
Class Name:
Method Name: nlls_fit_tensor


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


Project Name: nipy/dipy
Commit Name: ede16d13e33e1fa0708e2547abee9a9c7dace1d1
Time: 2016-08-29
Author: rafaelnh21@gmail.com
File Name: dipy/reconst/fwdti.py
Class Name:
Method Name: nlls_fit_tensor