@@ -49,7 +49,7 @@ def create_files_in_directory(request):
4949 nb .save (nb .Nifti1Image (img , np .eye (4 ), hdr ),
5050 os .path .join (testdir , f ))
5151
52- out_ext = Info .output_type_to_ext (Info .output_type ())
52+ out_ext = Info .output_type_to_ext (Info .output_type ())
5353
5454 def fin ():
5555 if os .path .exists (testdir ):
@@ -186,7 +186,7 @@ def test_meanimage(create_files_in_directory):
186186 meaner = fsl .MeanImage (in_file = "a.nii" )
187187 assert meaner .cmdline == "fslmaths a.nii -Tmean %s" % os .path .join (testdir , "a_mean%s" % out_ext )
188188
189-
189+
190190@pytest .mark .skipif (no_fsl (), reason = "fsl is not installed" )
191191def test_stdimage (create_files_in_directory ):
192192 files , testdir , out_ext = create_files_in_directory
@@ -209,7 +209,7 @@ def test_stdimage(create_files_in_directory):
209209 # Test the auto naming
210210 stder = fsl .StdImage (in_file = "a.nii" )
211211 #NOTE_dj, FAIL: this is failing (even the original version of the test with pytest)
212- #NOTE_dj: not sure if this should pass, it uses cmdline from interface.base.CommandLine
212+ #NOTE_dj: not sure if this should pass, it uses cmdline from interface.base.CommandLine
213213 #assert stder.cmdline == "fslmaths a.nii -Tstd %s"%os.path.join(testdir, "a_std.nii")
214214
215215
@@ -248,7 +248,7 @@ def test_smooth(create_files_in_directory):
248248 assert smoother .cmd == "fslmaths"
249249
250250 # Test that smoothing kernel is mandatory
251- with pytest .raises (ValueError ):
251+ with pytest .raises (ValueError ):
252252 smoother .run ()
253253
254254 # Test smoothing kernels
@@ -276,7 +276,7 @@ def test_mask(create_files_in_directory):
276276 assert masker .cmd == "fslmaths"
277277
278278 # Test that the mask image is mandatory
279- with pytest .raises (ValueError ):
279+ with pytest .raises (ValueError ):
280280 masker .run ()
281281
282282 # Test setting the mask image
@@ -299,7 +299,7 @@ def test_dilation(create_files_in_directory):
299299 assert diller .cmd == "fslmaths"
300300
301301 # Test that the dilation operation is mandatory
302- with pytest .raises (ValueError ):
302+ with pytest .raises (ValueError ):
303303 diller .run ()
304304
305305 # Test the different dilation operations
@@ -361,7 +361,7 @@ def test_spatial_filter(create_files_in_directory):
361361 assert filter .cmd == "fslmaths"
362362
363363 # Test that it fails without an operation
364- with pytest .raises (ValueError ):
364+ with pytest .raises (ValueError ):
365365 filter .run ()
366366
367367 # Test the different operations
@@ -385,7 +385,7 @@ def test_unarymaths(create_files_in_directory):
385385 assert maths .cmd == "fslmaths"
386386
387387 # Test that it fails without an operation
388- with pytest .raises (ValueError ):
388+ with pytest .raises (ValueError ):
389389 maths .run ()
390390
391391 # Test the different operations
@@ -488,4 +488,4 @@ def test_tempfilt(create_files_in_directory):
488488 "fslmaths a.nii -bptf 64.000000 -1.000000 %s" % os .path .join (testdir , "a_filt%s" % out_ext )
489489
490490
491-
491+
0 commit comments