Skip to content

Commit a53cd46

Browse files
committed
manually set num_components in test
1 parent 2c551d0 commit a53cd46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/algorithms/tests/test_CompCor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_compcor(self):
6161
'aCompCor')
6262

6363
def test_tcompcor(self):
64-
ccinterface = TCompCor(
64+
ccinterface = TCompCor(num_components=6,
6565
realigned_file=self.realigned_file, percentile_threshold=0.75)
6666
self.run_cc(ccinterface, [['-0.1114536190', '-0.4632908609'], [
6767
'0.4566907310', '0.6983205193'
@@ -70,7 +70,8 @@ def test_tcompcor(self):
7070
], ['-0.1342351356', '0.1407855119']], 'tCompCor')
7171

7272
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)
7475
ccinterface.run()
7576

7677
mask = nb.load('mask_000.nii.gz').get_data()
@@ -160,7 +161,6 @@ def run_cc(self,
160161
assert ccresult.outputs.components_file == expected_file
161162
assert os.path.exists(expected_file)
162163
assert os.path.getsize(expected_file) > 0
163-
assert ccinterface.inputs.num_components == 6
164164

165165
with open(ccresult.outputs.components_file, 'r') as components_file:
166166
expected_n_components = min(ccinterface.inputs.num_components,

0 commit comments

Comments
 (0)