Skip to content

Commit c00dd2f

Browse files
committed
ENH: added test_auto_NetCorr
This file was automatically generated by running "make specs"
1 parent bfcfa94 commit c00dd2f

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from ..preprocess import NetCorr
3+
4+
5+
def test_NetCorr_inputs():
6+
input_map = dict(
7+
args=dict(
8+
argstr="%s",
9+
),
10+
environ=dict(
11+
nohash=True,
12+
usedefault=True,
13+
),
14+
fish_z=dict(
15+
argstr="-fish_z",
16+
),
17+
ignore_LT=dict(
18+
argstr="-ignore_LT",
19+
),
20+
in_file=dict(
21+
argstr="-inset %s",
22+
extensions=None,
23+
mandatory=True,
24+
),
25+
in_rois=dict(
26+
argstr="-in_rois %s",
27+
extensions=None,
28+
mandatory=True,
29+
),
30+
mask=dict(
31+
argstr="-mask %s",
32+
extensions=None,
33+
),
34+
nifti=dict(
35+
argstr="-nifti",
36+
),
37+
num_threads=dict(
38+
nohash=True,
39+
usedefault=True,
40+
),
41+
out_file=dict(
42+
argstr="-prefix %s",
43+
extensions=None,
44+
name_source="in_file",
45+
name_template="%s_netcorr",
46+
position=1,
47+
),
48+
output_mask_nonnull=dict(
49+
argstr="-output_mask_nonnull",
50+
),
51+
outputtype=dict(),
52+
part_corr=dict(
53+
argstr="-part_corr",
54+
),
55+
push_thru_many_zeros=dict(
56+
argstr="-push_thru_many_zeros",
57+
),
58+
ts_indiv=dict(
59+
argstr="-ts_indiv",
60+
),
61+
ts_label=dict(
62+
argstr="-ts_label",
63+
),
64+
ts_out=dict(
65+
argstr="-ts_out",
66+
),
67+
ts_wb_Z=dict(
68+
argstr="-ts_wb_Z",
69+
),
70+
ts_wb_corr=dict(
71+
argstr="-ts_wb_corr",
72+
),
73+
ts_wb_strlabel=dict(
74+
argstr="-ts_wb_strlabel",
75+
),
76+
weight_ts=dict(
77+
argstr="-weight_ts %s",
78+
extensions=None,
79+
),
80+
)
81+
inputs = NetCorr.input_spec()
82+
83+
for key, metadata in list(input_map.items()):
84+
for metakey, value in list(metadata.items()):
85+
assert getattr(inputs.traits()[key], metakey) == value
86+
87+
88+
def test_NetCorr_outputs():
89+
output_map = dict(
90+
out_corr_maps=dict(),
91+
out_corr_matrix=dict(
92+
extensions=None,
93+
),
94+
)
95+
outputs = NetCorr.output_spec()
96+
97+
for key, metadata in list(output_map.items()):
98+
for metakey, value in list(metadata.items()):
99+
assert getattr(outputs.traits()[key], metakey) == value

0 commit comments

Comments
 (0)