Skip to content

Commit ca205ef

Browse files
committed
fix: ensure outputspec is derived from outputspec
1 parent beae436 commit ca205ef

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

nipype/algorithms/confounds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class CompCorInputSpec(BaseInterfaceInputSpec):
319319
requires=['mask_files'],
320320
desc=('Position of mask in `mask_files` to use - '
321321
'first is the default'))
322-
components_file = File('components_file.txt', exists=False, usedefault=True,
322+
components_file = traits.Str('components_file.txt', usedefault=True,
323323
desc='Filename to store physiological components')
324324
num_components = traits.Int(6, usedefault=True) # 6 for BOLD, 4 for ASL
325325
use_regress_poly = traits.Bool(True, usedefault=True,
@@ -452,8 +452,8 @@ class TCompCorInputSpec(CompCorInputSpec):
452452
'with the highest variance are used.')
453453

454454

455-
class TCompCorOutputSpec(CompCorInputSpec):
456-
# and all the fields in CompCorInputSpec
455+
class TCompCorOutputSpec(CompCorOutputSpec):
456+
# and all the fields in CompCorOutputSpec
457457
high_variance_masks = OutputMultiPath(File(exists=True),
458458
desc=("voxels excedding the variance "
459459
"threshold"))

nipype/algorithms/tests/test_compcor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import pytest
99
from ...testing import utils
1010
from ..confounds import CompCor, TCompCor, ACompCor
11-
from ...interfaces.base import Undefined
1211

1312

1413
class TestCompCor():

0 commit comments

Comments
 (0)