c54f3fde1c5210e090a0cd9ca95d36bdec5def8d,dipy/reconst/tests/test_fwdti.py,,test_fwdti_singlevoxel,#,63

Before Change


    // Test non-linear fit, when no first guess is given
    fwdm = fwdti.FreeWaterTensorModel(gtab_2s, "NLS", fw_params=None,
                                      cholesky=False)
    fwefit = fwdm.fit(S_conta)
    FAfwe = fwefit.fa
    Ffwe = fwefit.f
    S0fwe = fwefit.S0

After Change



def test_fwdti_singlevoxel():
    // Simulation a typical DT and DW signal for no water contamination
    dt = np.array([0.0017, 0, 0.0003, 0, 0, 0.0003])
    evals, evecs = decompose_tensor(from_lower_triangular(dt))
    S_tissue = single_tensor(gtab_2s, S0=100, evals=evals, evecs=evecs,
                             snr=None)
    dm = dti.TensorModel(gtab_2s, "WLS")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: nipy/dipy
Commit Name: c54f3fde1c5210e090a0cd9ca95d36bdec5def8d
Time: 2016-08-29
Author: rafaelnh21@gmail.com
File Name: dipy/reconst/tests/test_fwdti.py
Class Name:
Method Name: test_fwdti_singlevoxel


Project Name: geomstats/geomstats
Commit Name: 078012f5acd06bfdfc652148f546864b8f82db50
Time: 2020-01-23
Author: hadizaatiti@gmail.com
File Name: examples/plot_kmeans_poincare_disk.py
Class Name:
Method Name: main


Project Name: geomstats/geomstats
Commit Name: 1a92f14dfa223c5e9fa57ec6865f0d01b8d741a3
Time: 2020-01-23
Author: hadizaatiti@gmail.com
File Name: examples/plot_kmeans_poincare_disk.py
Class Name:
Method Name: main