// 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")