@@ -61,7 +61,7 @@ def test_compcor(self):
61
61
'aCompCor' )
62
62
63
63
def test_tcompcor (self ):
64
- ccinterface = TCompCor (
64
+ ccinterface = TCompCor (num_components = 6 ,
65
65
realigned_file = self .realigned_file , percentile_threshold = 0.75 )
66
66
self .run_cc (ccinterface , [['-0.1114536190' , '-0.4632908609' ], [
67
67
'0.4566907310' , '0.6983205193'
@@ -70,7 +70,8 @@ def test_tcompcor(self):
70
70
], ['-0.1342351356' , '0.1407855119' ]], 'tCompCor' )
71
71
72
72
def test_tcompcor_no_percentile (self ):
73
- ccinterface = TCompCor (realigned_file = self .realigned_file )
73
+ ccinterface = TCompCor (num_components = 6 ,
74
+ realigned_file = self .realigned_file )
74
75
ccinterface .run ()
75
76
76
77
mask = nb .load ('mask_000.nii.gz' ).get_data ()
@@ -160,7 +161,6 @@ def run_cc(self,
160
161
assert ccresult .outputs .components_file == expected_file
161
162
assert os .path .exists (expected_file )
162
163
assert os .path .getsize (expected_file ) > 0
163
- assert ccinterface .inputs .num_components == 6
164
164
165
165
with open (ccresult .outputs .components_file , 'r' ) as components_file :
166
166
expected_n_components = min (ccinterface .inputs .num_components ,
0 commit comments