@@ -35,11 +35,11 @@ def _make_affine(coses, zooms, starts):
35
35
36
36
class TestEPIFrame :
37
37
opener = staticmethod (top_load )
38
- x_cos = [ 1 , 0 , 0 ]
39
- y_cos = [ 0.0 , 1 , 0 ]
40
- z_cos = [ 0 , 0 , 1 ]
41
- zooms = [ - 0.8984375 , - 0.8984375 , 3.0 ]
42
- starts = [ 117.25609125 , 138.89861125 , - 54.442028 ]
38
+ x_cos = ( 1 , 0 , 0 )
39
+ y_cos = ( 0.0 , 1 , 0 )
40
+ z_cos = ( 0 , 0 , 1 )
41
+ zooms = ( - 0.8984375 , - 0.8984375 , 3.0 )
42
+ starts = ( 117.25609125 , 138.89861125 , - 54.442028 )
43
43
example_params = dict (
44
44
fname = os .path .join (MINC2_PATH , 'mincex_EPI-frame.mnc' ),
45
45
shape = (40 , 256 , 256 ),
@@ -74,11 +74,11 @@ def test_load(self):
74
74
75
75
76
76
class TestB0 (TestEPIFrame ):
77
- x_cos = [ 0.9970527523765 , 0.0 , 0.0767190261828617 ]
78
- y_cos = [ 0.0 , 1.0 , - 6.9388939e-18 ]
79
- z_cos = [ - 0.0767190261828617 , 6.9184432614435e-18 , 0.9970527523765 ]
80
- zooms = [ - 0.8984375 , - 0.8984375 , 6.49999990444107 ]
81
- starts = [ 105.473101260826 , 151.74885125 , - 61.8714747993248 ]
77
+ x_cos = ( 0.9970527523765 , 0.0 , 0.0767190261828617 )
78
+ y_cos = ( 0.0 , 1.0 , - 6.9388939e-18 )
79
+ z_cos = ( - 0.0767190261828617 , 6.9184432614435e-18 , 0.9970527523765 )
80
+ zooms = ( - 0.8984375 , - 0.8984375 , 6.49999990444107 )
81
+ starts = ( 105.473101260826 , 151.74885125 , - 61.8714747993248 )
82
82
example_params = dict (
83
83
fname = os .path .join (MINC2_PATH , 'mincex_diff-B0.mnc' ),
84
84
shape = (19 , 256 , 256 ),
@@ -105,11 +105,11 @@ class TestFA(TestEPIFrame):
105
105
106
106
107
107
class TestGado (TestEPIFrame ):
108
- x_cos = [ 0.999695413509548 , - 0.0174524064372835 , 0.0174497483512505 ]
109
- y_cos = [ 0.0174497483512505 , 0.999847695156391 , 0.000304586490452135 ]
110
- z_cos = [ - 0.0174524064372835 , 0.0 , 0.999847695156391 ]
111
- zooms = [ 1 , - 1 , - 1 ]
112
- starts = [ - 75.76775 , 115.80462 , 81.38605 ]
108
+ x_cos = ( 0.999695413509548 , - 0.0174524064372835 , 0.0174497483512505 )
109
+ y_cos = ( 0.0174497483512505 , 0.999847695156391 , 0.000304586490452135 )
110
+ z_cos = ( - 0.0174524064372835 , 0.0 , 0.999847695156391 )
111
+ zooms = ( 1 , - 1 , - 1 )
112
+ starts = ( - 75.76775 , 115.80462 , 81.38605 )
113
113
example_params = dict (
114
114
fname = os .path .join (MINC2_PATH , 'mincex_gado-contrast.mnc' ),
115
115
shape = (100 , 170 , 146 ),
@@ -124,11 +124,11 @@ class TestGado(TestEPIFrame):
124
124
125
125
126
126
class TestT1 (TestEPIFrame ):
127
- x_cos = [ 1 , 0 , 0 ]
128
- y_cos = [ 0 , 1 , 0 ]
129
- z_cos = [ 0 , 0 , 1 ]
130
- zooms = [ 1 , 1 , 1 ]
131
- starts = [ - 90 , - 126 , - 12 ]
127
+ x_cos = ( 1 , 0 , 0 )
128
+ y_cos = ( 0 , 1 , 0 )
129
+ z_cos = ( 0 , 0 , 1 )
130
+ zooms = ( 1 , 1 , 1 )
131
+ starts = ( - 90 , - 126 , - 12 )
132
132
example_params = dict (
133
133
fname = os .path .join (MINC2_PATH , 'mincex_t1.mnc' ),
134
134
shape = (110 , 217 , 181 ),
0 commit comments