25
25
EXAMPLE_IMAGES = [
26
26
dict (
27
27
head = pjoin (data_path , 'example4d+orig.HEAD' ),
28
- brik = pjoin (data_path , 'example4d+orig.BRIK.gz' ),
28
+ fname = pjoin (data_path , 'example4d+orig.BRIK.gz' ),
29
29
shape = (33 , 41 , 25 , 3 ),
30
30
dtype = np .int16 ,
31
31
affine = np .array ([[- 3.0 ,0 ,0 ,49.5 ],
43
43
scaling = None ),
44
44
dict (
45
45
head = pjoin (data_path , 'scaled+tlrc.HEAD' ),
46
- brik = pjoin (data_path , 'scaled+tlrc.BRIK' ),
46
+ fname = pjoin (data_path , 'scaled+tlrc.BRIK' ),
47
47
shape = (47 , 54 , 43 , 1. ),
48
48
dtype = np .int16 ,
49
49
affine = np .array ([[3.0 ,0 ,0 ,- 66. ],
@@ -85,7 +85,7 @@ def test_makehead(self):
85
85
with assert_raises (self .module .AFNIHeaderError ):
86
86
self .module .AFNIHeader .from_header (header = None )
87
87
with assert_raises (self .module .AFNIHeaderError ):
88
- self .module .AFNIHeader .from_header (tp ['brik ' ])
88
+ self .module .AFNIHeader .from_header (tp ['fname ' ])
89
89
90
90
91
91
class TestAFNIImage (object ):
@@ -94,7 +94,7 @@ class TestAFNIImage(object):
94
94
95
95
def test_brikheadfile (self ):
96
96
for tp in self .test_files :
97
- brik = self .module .load (tp ['brik ' ])
97
+ brik = self .module .load (tp ['fname ' ])
98
98
assert_equal (brik .get_data_dtype ().type , tp ['dtype' ])
99
99
assert_equal (brik .shape , tp ['shape' ])
100
100
assert_equal (brik .header .get_zooms (), tp ['zooms' ])
@@ -120,7 +120,7 @@ def test_load(self):
120
120
def test_array_proxy_slicing (self ):
121
121
# Test slicing of array proxy
122
122
for tp in self .test_files :
123
- img = self .module .load (tp ['brik ' ])
123
+ img = self .module .load (tp ['fname ' ])
124
124
arr = img .get_data ()
125
125
prox = img .dataobj
126
126
assert_true (prox .is_proxy )
0 commit comments