07cc05e233b45d78435639b018d48a373af9e533,dipy/sims/tests/test_voxel.py,,test_single_tensor,#,30
Before Change
//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
m = TensorModel(gtab)
t = m.fit(S)
assert_array_almost_equal(t.fa, 0.707, decimal=3)
def test_multi_tensor():
sphere = get_sphere("symmetric724")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
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: nilearn/nilearn
Commit Name: 063907787cd54bd3d2321bb130c24e4ab79f9f30
Time: 2015-06-26
Author: abraham.alexandre@gmail.com
File Name: nilearn/input_data/nifti_maps_masker.py
Class Name: NiftiMapsMasker
Method Name: fit
Project Name: pantsbuild/pants
Commit Name: 7788d47d856fb487629cd849e29c325bee3b5899
Time: 2018-02-19
Author: benjyw@gmail.com
File Name: tests/python/pants_test/backend/python/tasks/test_build_local_python_distributions.py
Class Name: TestBuildLocalPythonDistributions
Method Name: test_python_create_distributions
Project Name: RasaHQ/rasa
Commit Name: 8185e4bd0495e30a4d5fd6a4f5f3f0ae421dcfa9
Time: 2018-12-18
Author: tom@rasa.com
File Name: tests/test_server.py
Class Name:
Method Name: test_root