e3bdeee92ade18b1364664b095311b59e03079d5,dipy/reconst/fwdti.py,,nls_iter,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,535

Before Change



        // Invert f transformation if this was requested
        if f_transform:
            this_tensor[7] = 0.5 * (1 + np.sin(this_tensor[7] - np.pi/2))

        // The parameters are the evals and the evecs:
        evals, evecs = decompose_tensor(from_lower_triangular(this_tensor[:6]))

After 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]))

        // Process water volume fraction f
        if f_transform:
            f = 0.5 * (1 + np.sin(f - np.pi/2))        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nipy/dipy
Commit Name: e3bdeee92ade18b1364664b095311b59e03079d5
Time: 2016-10-31
Author: rh04@login15.mrc-cbu.cam.ac.uk
File Name: dipy/reconst/fwdti.py
Class Name:
Method Name: nls_iter


Project Name: nipy/dipy
Commit Name: fa786e5f2a8016725991cf2d02eebe6368dc04b3
Time: 2015-10-15
Author: dimrozakis@gmail.com
File Name: dipy/reconst/dti.py
Class Name:
Method Name: wls_fit_tensor


Project Name: nipy/dipy
Commit Name: 4f3da275037d4fe3108039fdbfc03b2f81fbee8c
Time: 2015-10-15
Author: dimrozakis@gmail.com
File Name: dipy/reconst/dti.py
Class Name:
Method Name: ols_fit_tensor