@@ -24,57 +24,20 @@ def setup():
24
24
global DATA
25
25
26
26
DATA ['empty_tck_fname' ] = pjoin (data_path , "empty.tck" )
27
- # simple.trk contains only streamlines
27
+ # simple.tck contains only streamlines
28
28
DATA ['simple_tck_fname' ] = pjoin (data_path , "simple.tck" )
29
29
DATA ['simple_tck_big_endian_fname' ] = pjoin (data_path ,
30
30
"simple_big_endian.tck" )
31
- # standard.trk contains only streamlines
31
+ # standard.tck contains only streamlines
32
32
DATA ['standard_tck_fname' ] = pjoin (data_path , "standard.tck" )
33
- # complex.trk contains streamlines, scalars and properties
34
- # DATA['complex_tck_fname'] = pjoin(data_path, "complex.tck")
35
33
36
34
DATA ['streamlines' ] = [np .arange (1 * 3 , dtype = "f4" ).reshape ((1 , 3 )),
37
35
np .arange (2 * 3 , dtype = "f4" ).reshape ((2 , 3 )),
38
36
np .arange (5 * 3 , dtype = "f4" ).reshape ((5 , 3 ))]
39
37
40
- # DATA['fa'] = [np.array([[0.2]], dtype="f4"),
41
- # np.array([[0.3],
42
- # [0.4]], dtype="f4"),
43
- # np.array([[0.5],
44
- # [0.6],
45
- # [0.6],
46
- # [0.7],
47
- # [0.8]], dtype="f4")]
48
-
49
- # DATA['colors'] = [np.array([(1, 0, 0)]*1, dtype="f4"),
50
- # np.array([(0, 1, 0)]*2, dtype="f4"),
51
- # np.array([(0, 0, 1)]*5, dtype="f4")]
52
-
53
- # DATA['mean_curvature'] = [np.array([1.11], dtype="f4"),
54
- # np.array([2.11], dtype="f4"),
55
- # np.array([3.11], dtype="f4")]
56
-
57
- # DATA['mean_torsion'] = [np.array([1.22], dtype="f4"),
58
- # np.array([2.22], dtype="f4"),
59
- # np.array([3.22], dtype="f4")]
60
-
61
- # DATA['mean_colors'] = [np.array([1, 0, 0], dtype="f4"),
62
- # np.array([0, 1, 0], dtype="f4"),
63
- # np.array([0, 0, 1], dtype="f4")]
64
-
65
- # DATA['data_per_point'] = {'colors': DATA['colors'],
66
- # 'fa': DATA['fa']}
67
- # DATA['data_per_streamline'] = {'mean_curvature': DATA['mean_curvature'],
68
- # 'mean_torsion': DATA['mean_torsion'],
69
- # 'mean_colors': DATA['mean_colors']}
70
-
71
38
DATA ['empty_tractogram' ] = Tractogram (affine_to_rasmm = np .eye (4 ))
72
39
DATA ['simple_tractogram' ] = Tractogram (DATA ['streamlines' ],
73
40
affine_to_rasmm = np .eye (4 ))
74
- # DATA['complex_tractogram'] = Tractogram(DATA['streamlines'],
75
- # DATA['data_per_streamline'],
76
- # DATA['data_per_point'],
77
- # affine_to_rasmm=np.eye(4))
78
41
79
42
80
43
class TestTCK (unittest .TestCase ):
0 commit comments