1
1
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
2
2
# vi: set ft=python sts=4 ts=4 sw=4 et:
3
- import nipype
4
- from ...testing import assert_equal , assert_true , assert_false , skipif , utils
5
- from ..confounds import CompCor , TCompCor , ACompCor
6
-
7
- import unittest
8
- import nibabel as nb
9
- import numpy as np
10
3
import os
11
4
import tempfile
12
5
import shutil
6
+ import unittest
7
+
8
+ import nibabel as nb
9
+ import numpy as np
10
+
11
+ from ...testing import assert_equal , assert_true , utils
12
+ from ..confounds import CompCor , TCompCor , ACompCor
13
13
14
14
class TestCompCor (unittest .TestCase ):
15
15
''' Note: Tests currently do a poor job of testing functionality '''
@@ -27,8 +27,8 @@ def setUp(self):
27
27
self .realigned_file = utils .save_toy_nii (self .fake_data + noise ,
28
28
self .filenames ['functionalnii' ])
29
29
mask = np .ones (self .fake_data .shape [:3 ])
30
- mask [0 ,0 , 0 ] = 0
31
- mask [0 ,0 , 1 ] = 0
30
+ mask [0 , 0 , 0 ] = 0
31
+ mask [0 , 0 , 1 ] = 0
32
32
self .mask_file = utils .save_toy_nii (mask , self .filenames ['masknii' ])
33
33
34
34
def test_compcor (self ):
@@ -58,7 +58,7 @@ def test_tcompcor(self):
58
58
['0.5022537643' , '-0.5098322262' ],
59
59
['-0.1342351356' , '0.1407855119' ]])
60
60
61
- def test_tcompcor_with_default_percentile (self ):
61
+ def test_tcompcor_no_percentile (self ):
62
62
ccinterface = TCompCor (realigned_file = self .realigned_file )
63
63
ccinterface .run ()
64
64
0 commit comments