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
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
// OLS solution in this voxel:
except np.linalg.LinAlgError:
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: 81e6b8c24d0c07a4034c523751221e7951c00b5d
Time: 2013-07-21
Author: arokem@gmail.com
File Name: dipy/reconst/dti.py
Class Name:
Method Name: nlls_fit_tensor
Project Name: pymc-devs/pymc3
Commit Name: 48e4d759587291cef92c060949cdd11185209063
Time: 2012-05-02
Author: jsalvatier@gmail.com
File Name: mcex/core.py
Class Name: VariableMapping
Method Name: project