Skip to content

Commit 0f1fb6c

Browse files
committed
change input to masks since that seems to be the standard for AFNI interfaces, update specs
1 parent 78c40e7 commit 0f1fb6c

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..utils import GCOR
4+
5+
6+
def test_GCOR_inputs():
7+
input_map = dict(args=dict(argstr='%s',
8+
),
9+
environ=dict(nohash=True,
10+
usedefault=True,
11+
),
12+
ignore_exception=dict(nohash=True,
13+
usedefault=True,
14+
),
15+
in_file=dict(argstr='-input %s',
16+
copyfile=False,
17+
mandatory=True,
18+
position=-1,
19+
),
20+
mask=dict(argstr='-mask %s',
21+
copyfile=False,
22+
),
23+
nfirst=dict(argstr='-nfirst %d',
24+
),
25+
no_demean=dict(argstr='-no_demean',
26+
),
27+
terminal_output=dict(nohash=True,
28+
),
29+
)
30+
inputs = GCOR.input_spec()
31+
32+
for key, metadata in list(input_map.items()):
33+
for metakey, value in list(metadata.items()):
34+
assert getattr(inputs.traits()[key], metakey) == value
35+
36+
37+
def test_GCOR_outputs():
38+
output_map = dict(out=dict(),
39+
)
40+
outputs = GCOR.output_spec()
41+
42+
for key, metadata in list(output_map.items()):
43+
for metakey, value in list(metadata.items()):
44+
assert getattr(outputs.traits()[key], metakey) == value

nipype/interfaces/afni/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ class GCORInputSpec(CommandLineInputSpec):
13891389
exists=True,
13901390
copyfile=False)
13911391

1392-
in_mask = File(
1392+
mask = File(
13931393
desc='mask dataset, for restricting the computation',
13941394
argstr='-mask %s',
13951395
exists=True,

0 commit comments

Comments
 (0)