Skip to content

Commit fd379bc

Browse files
committed
removing mandatory=False
1 parent deb99a0 commit fd379bc

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

nipype/algorithms/confounds.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,9 @@ def _list_outputs(self):
281281
class CompCorInputSpec(BaseInterfaceInputSpec):
282282
realigned_file = File(exists=True, mandatory=True,
283283
desc='already realigned brain image (4D)')
284-
mask_file = File(exists=True, mandatory=False,
285-
desc='mask file that determines ROI (3D)')
284+
mask_file = File(exists=True, desc='mask file that determines ROI (3D)')
286285
components_file = File('components_file.txt', exists=False,
287-
mandatory=False, usedefault=True,
286+
usedefault=True,
288287
desc='filename to store physiological components')
289288
num_components = traits.Int(6, usedefault=True) # 6 for BOLD, 4 for ASL
290289
use_regress_poly = traits.Bool(True, usedefault=True,

nipype/interfaces/nilearn.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,19 @@ class SignalExtractionInputSpec(BaseInterfaceInputSpec):
3737
'corresponds to the class labels in label_file '
3838
'in ascending order')
3939
out_file = File('signals.tsv', usedefault=True, exists=False,
40-
mandatory=False, desc='The name of the file to output to. '
40+
desc='The name of the file to output to. '
4141
'signals.tsv by default')
42-
incl_shared_variance = traits.Bool(True, usedefault=True, mandatory=False, desc='By default '
42+
incl_shared_variance = traits.Bool(True, usedefault=True, desc='By default '
4343
'(True), returns simple time series calculated from each '
4444
'region independently (e.g., for noise regression). If '
4545
'False, returns unique signals for each region, discarding '
4646
'shared variance (e.g., for connectivity. Only has effect '
4747
'with 4D probability maps.')
48-
include_global = traits.Bool(False, usedefault=True, mandatory=False,
48+
include_global = traits.Bool(False, usedefault=True,
4949
desc='If True, include an extra column '
5050
'labeled "global", with values calculated from the entire brain '
5151
'(instead of just regions).')
52-
detrend = traits.Bool(False, usedefault=True, mandatory=False,
53-
desc='If True, perform detrending using nilearn.')
52+
detrend = traits.Bool(False, usedefault=True, desc='If True, perform detrending using nilearn.')
5453

5554
class SignalExtractionOutputSpec(TraitedSpec):
5655
out_file = File(exists=True, desc='tsv file containing the computed '

0 commit comments

Comments
 (0)