07cc05e233b45d78435639b018d48a373af9e533,dipy/sims/tests/test_voxel.py,,test_single_tensor,#,30
Before Change
gtab = gradient_table(bvals, bvecs)
//bvals=np.loadtxt(fbvals)
//bvecs=np.loadtxt(fbvecs).T
img=nib.load(fimg)
data=img.get_data()
evals=np.array([1.4,.35,.35])*10**(-3)
evecs=np.eye(3)
S=SingleTensor(gtab, 100,evals,evecs,snr=None)
After Change
assert_(np.mean(S[~gtab.b0s_mask]) < 100)
from dipy.reconst.dti import TensorModel
m = TensorModel(gtab)
t = m.fit(S)
assert_array_almost_equal(t.fa, 0.707, decimal=3)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: nipy/dipy
Commit Name: 07cc05e233b45d78435639b018d48a373af9e533
Time: 2012-11-29
Author: stefan@sun.ac.za
File Name: dipy/sims/tests/test_voxel.py
Class Name:
Method Name: test_single_tensor
Project Name: autorope/donkeycar
Commit Name: b85a210e72d4333b71c72f33b905de0ad0070c17
Time: 2017-02-18
Author: wroscoe@gmail.com
File Name: scripts/train.py
Class Name:
Method Name:
Project Name: nipy/dipy
Commit Name: 07cc05e233b45d78435639b018d48a373af9e533
Time: 2012-11-29
Author: stefan@sun.ac.za
File Name: dipy/sims/tests/test_phantom.py
Class Name:
Method Name: test_phantom
Project Name: biolab/orange3
Commit Name: 887ee40cf11e939de737903a1d867eb41f49acb4
Time: 2014-12-04
Author: martin.strazar@gmail.com
File Name: Orange/widgets/classify/owclassificationtreegraph.py
Class Name:
Method Name: