Skip to content

Commit 7c211ca

Browse files
committed
Added ROBEX test.
Updated name on contributions.
1 parent 68d67a4 commit 7c211ca

File tree

2 files changed

+62
-1
lines changed

2 files changed

+62
-1
lines changed

.zenodo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@
263263
},
264264
{
265265
"affiliation": "CIBIT, UC",
266-
"name": "Machado, F\u00e1tima",
266+
"name": "Dias, Maria de Fatima",
267267
"orcid": "0000-0001-8878-1750"
268268
},
269269
{
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from ..preprocess import RobexSegment
3+
4+
5+
def test_RobexSegment_inputs():
6+
input_map = dict(
7+
args=dict(
8+
argstr="%s",
9+
),
10+
environ=dict(
11+
nohash=True,
12+
usedefault=True,
13+
),
14+
in_file=dict(
15+
argstr="%s",
16+
extensions=None,
17+
mandatory=True,
18+
position=0,
19+
),
20+
out_file=dict(
21+
argstr="%s",
22+
extensions=None,
23+
hash_files=False,
24+
keep_extension=True,
25+
name_template="%s_brain",
26+
position=1,
27+
),
28+
out_mask=dict(
29+
argstr="%s",
30+
extensions=None,
31+
hash_files=False,
32+
keep_extension=True,
33+
name_template="%s_brainmask",
34+
position=2,
35+
),
36+
seed=dict(
37+
argstr="%i",
38+
position=3,
39+
),
40+
)
41+
inputs = RobexSegment.input_spec()
42+
43+
for key, metadata in list(input_map.items()):
44+
for metakey, value in list(metadata.items()):
45+
assert getattr(inputs.traits()[key], metakey) == value
46+
47+
48+
def test_RobexSegment_outputs():
49+
output_map = dict(
50+
out_file=dict(
51+
extensions=None,
52+
),
53+
out_mask=dict(
54+
extensions=None,
55+
),
56+
)
57+
outputs = RobexSegment.output_spec()
58+
59+
for key, metadata in list(output_map.items()):
60+
for metakey, value in list(metadata.items()):
61+
assert getattr(outputs.traits()[key], metakey) == value

0 commit comments

Comments
 (0)