2525EXAMPLE_IMAGES = [
2626 dict (
2727 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' ),
2929 shape = (33 , 41 , 25 , 3 ),
3030 dtype = np .int16 ,
3131 affine = np .array ([[- 3.0 ,0 ,0 ,49.5 ],
4343 scaling = None ),
4444 dict (
4545 head = pjoin (data_path , 'scaled+tlrc.HEAD' ),
46- brik = pjoin (data_path , 'scaled+tlrc.BRIK' ),
46+ fname = pjoin (data_path , 'scaled+tlrc.BRIK' ),
4747 shape = (47 , 54 , 43 , 1. ),
4848 dtype = np .int16 ,
4949 affine = np .array ([[3.0 ,0 ,0 ,- 66. ],
@@ -85,7 +85,7 @@ def test_makehead(self):
8585 with assert_raises (self .module .AFNIHeaderError ):
8686 self .module .AFNIHeader .from_header (header = None )
8787 with assert_raises (self .module .AFNIHeaderError ):
88- self .module .AFNIHeader .from_header (tp ['brik ' ])
88+ self .module .AFNIHeader .from_header (tp ['fname ' ])
8989
9090
9191class TestAFNIImage (object ):
@@ -94,7 +94,7 @@ class TestAFNIImage(object):
9494
9595 def test_brikheadfile (self ):
9696 for tp in self .test_files :
97- brik = self .module .load (tp ['brik ' ])
97+ brik = self .module .load (tp ['fname ' ])
9898 assert_equal (brik .get_data_dtype ().type , tp ['dtype' ])
9999 assert_equal (brik .shape , tp ['shape' ])
100100 assert_equal (brik .header .get_zooms (), tp ['zooms' ])
@@ -120,7 +120,7 @@ def test_load(self):
120120 def test_array_proxy_slicing (self ):
121121 # Test slicing of array proxy
122122 for tp in self .test_files :
123- img = self .module .load (tp ['brik ' ])
123+ img = self .module .load (tp ['fname ' ])
124124 arr = img .get_data ()
125125 prox = img .dataobj
126126 assert_true (prox .is_proxy )
0 commit comments