Skip to content

Commit fb4e20b

Browse files
committed
Merge remote-tracking branch 'nipy/master' into clean-afni
2 parents fa3daf3 + fa723f7 commit fb4e20b

File tree

5 files changed

+13
-21
lines changed

5 files changed

+13
-21
lines changed

CHANGES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Upcoming release 0.13
22
=====================
33

4-
* REF: Refactor AFNI interfaces (https://github.com/nipy/nipype/pull/1678)
4+
* REF: Refactor AFNI interfaces (https://github.com/nipy/nipype/pull/1678, https://github.com/nipy/nipype/pull/1680)
55
* ENH: Move nipype commands to group command using click (https://github.com/nipy/nipype/pull/1608)
66
* FIX: AFNI Retroicor interface fixes (https://github.com/nipy/nipype/pull/1669)
77
* FIX: Minor errors after migration to setuptools (https://github.com/nipy/nipype/pull/1671)

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/algorithms/tests/test_auto_TCompCor.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44

55

66
def test_TCompCor_inputs():
7-
input_map = dict(components_file=dict(mandatory=False,
8-
usedefault=True,
7+
input_map = dict(components_file=dict(usedefault=True,
98
),
109
ignore_exception=dict(nohash=True,
1110
usedefault=True,
1211
),
13-
mask_file=dict(mandatory=False,
14-
),
12+
mask_file=dict(),
1513
num_components=dict(usedefault=True,
1614
),
1715
percentile_threshold=dict(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 '

nipype/interfaces/tests/test_auto_SignalExtraction.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,20 @@
66
def test_SignalExtraction_inputs():
77
input_map = dict(class_labels=dict(mandatory=True,
88
),
9-
detrend=dict(mandatory=False,
10-
usedefault=True,
9+
detrend=dict(usedefault=True,
1110
),
1211
ignore_exception=dict(nohash=True,
1312
usedefault=True,
1413
),
1514
in_file=dict(mandatory=True,
1615
),
17-
incl_shared_variance=dict(mandatory=False,
18-
usedefault=True,
16+
incl_shared_variance=dict(usedefault=True,
1917
),
20-
include_global=dict(mandatory=False,
21-
usedefault=True,
18+
include_global=dict(usedefault=True,
2219
),
2320
label_files=dict(mandatory=True,
2421
),
25-
out_file=dict(mandatory=False,
26-
usedefault=True,
22+
out_file=dict(usedefault=True,
2723
),
2824
)
2925
inputs = SignalExtraction.input_spec()

0 commit comments

Comments
 (0)