Skip to content

Commit 4e3b2e8

Browse files
committed
tst: added mipav tests
1 parent 5dbb5eb commit 4e3b2e8

18 files changed

+1224
-0
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.mipav.developer import JistBrainMgdmSegmentation
4+
5+
def test_JistBrainMgdmSegmentation_inputs():
6+
input_map = dict(args=dict(argstr='%s',
7+
),
8+
environ=dict(nohash=True,
9+
usedefault=True,
10+
),
11+
ignore_exception=dict(nohash=True,
12+
usedefault=True,
13+
),
14+
inAdjust=dict(argstr='--inAdjust %s',
15+
),
16+
inAtlas=dict(argstr='--inAtlas %s',
17+
),
18+
inCompute=dict(argstr='--inCompute %s',
19+
),
20+
inCurvature=dict(argstr='--inCurvature %f',
21+
),
22+
inData=dict(argstr='--inData %f',
23+
),
24+
inFLAIR=dict(argstr='--inFLAIR %s',
25+
),
26+
inMP2RAGE=dict(argstr='--inMP2RAGE %s',
27+
),
28+
inMP2RAGE2=dict(argstr='--inMP2RAGE2 %s',
29+
),
30+
inMPRAGE=dict(argstr='--inMPRAGE %s',
31+
),
32+
inMax=dict(argstr='--inMax %d',
33+
),
34+
inMin=dict(argstr='--inMin %f',
35+
),
36+
inOutput=dict(argstr='--inOutput %s',
37+
),
38+
inPV=dict(argstr='--inPV %s',
39+
),
40+
inPosterior=dict(argstr='--inPosterior %f',
41+
),
42+
inSteps=dict(argstr='--inSteps %d',
43+
),
44+
inTopology=dict(argstr='--inTopology %s',
45+
),
46+
null=dict(argstr='--null %s',
47+
),
48+
outLevelset=dict(argstr='--outLevelset %s',
49+
hash_files=False,
50+
),
51+
outPosterior2=dict(argstr='--outPosterior2 %s',
52+
hash_files=False,
53+
),
54+
outPosterior3=dict(argstr='--outPosterior3 %s',
55+
hash_files=False,
56+
),
57+
outSegmented=dict(argstr='--outSegmented %s',
58+
hash_files=False,
59+
),
60+
terminal_output=dict(mandatory=True,
61+
nohash=True,
62+
),
63+
xDefaultMem=dict(argstr='-xDefaultMem %d',
64+
),
65+
xMaxProcess=dict(argstr='-xMaxProcess %d',
66+
usedefault=True,
67+
),
68+
xPrefExt=dict(argstr='--xPrefExt %s',
69+
),
70+
)
71+
inputs = JistBrainMgdmSegmentation.input_spec()
72+
73+
for key, metadata in input_map.items():
74+
for metakey, value in metadata.items():
75+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
76+
77+
def test_JistBrainMgdmSegmentation_outputs():
78+
output_map = dict(outLevelset=dict(),
79+
outPosterior2=dict(),
80+
outPosterior3=dict(),
81+
outSegmented=dict(),
82+
)
83+
outputs = JistBrainMgdmSegmentation.output_spec()
84+
85+
for key, metadata in output_map.items():
86+
for metakey, value in metadata.items():
87+
yield assert_equal, getattr(outputs.traits()[key], metakey), value
88+
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.mipav.developer import JistBrainMp2rageDuraEstimation
4+
5+
def test_JistBrainMp2rageDuraEstimation_inputs():
6+
input_map = dict(args=dict(argstr='%s',
7+
),
8+
environ=dict(nohash=True,
9+
usedefault=True,
10+
),
11+
ignore_exception=dict(nohash=True,
12+
usedefault=True,
13+
),
14+
inDistance=dict(argstr='--inDistance %f',
15+
),
16+
inSecond=dict(argstr='--inSecond %s',
17+
),
18+
inSkull=dict(argstr='--inSkull %s',
19+
),
20+
inoutput=dict(argstr='--inoutput %s',
21+
),
22+
null=dict(argstr='--null %s',
23+
),
24+
outDura=dict(argstr='--outDura %s',
25+
hash_files=False,
26+
),
27+
terminal_output=dict(mandatory=True,
28+
nohash=True,
29+
),
30+
xDefaultMem=dict(argstr='-xDefaultMem %d',
31+
),
32+
xMaxProcess=dict(argstr='-xMaxProcess %d',
33+
usedefault=True,
34+
),
35+
xPrefExt=dict(argstr='--xPrefExt %s',
36+
),
37+
)
38+
inputs = JistBrainMp2rageDuraEstimation.input_spec()
39+
40+
for key, metadata in input_map.items():
41+
for metakey, value in metadata.items():
42+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
43+
44+
def test_JistBrainMp2rageDuraEstimation_outputs():
45+
output_map = dict(outDura=dict(),
46+
)
47+
outputs = JistBrainMp2rageDuraEstimation.output_spec()
48+
49+
for key, metadata in output_map.items():
50+
for metakey, value in metadata.items():
51+
yield assert_equal, getattr(outputs.traits()[key], metakey), value
52+
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.mipav.developer import JistBrainMp2rageSkullStripping
4+
5+
def test_JistBrainMp2rageSkullStripping_inputs():
6+
input_map = dict(args=dict(argstr='%s',
7+
),
8+
environ=dict(nohash=True,
9+
usedefault=True,
10+
),
11+
ignore_exception=dict(nohash=True,
12+
usedefault=True,
13+
),
14+
inFilter=dict(argstr='--inFilter %s',
15+
),
16+
inSecond=dict(argstr='--inSecond %s',
17+
),
18+
inSkip=dict(argstr='--inSkip %s',
19+
),
20+
inT1=dict(argstr='--inT1 %s',
21+
),
22+
inT1weighted=dict(argstr='--inT1weighted %s',
23+
),
24+
null=dict(argstr='--null %s',
25+
),
26+
outBrain=dict(argstr='--outBrain %s',
27+
hash_files=False,
28+
),
29+
outMasked=dict(argstr='--outMasked %s',
30+
hash_files=False,
31+
),
32+
outMasked2=dict(argstr='--outMasked2 %s',
33+
hash_files=False,
34+
),
35+
outMasked3=dict(argstr='--outMasked3 %s',
36+
hash_files=False,
37+
),
38+
terminal_output=dict(mandatory=True,
39+
nohash=True,
40+
),
41+
xDefaultMem=dict(argstr='-xDefaultMem %d',
42+
),
43+
xMaxProcess=dict(argstr='-xMaxProcess %d',
44+
usedefault=True,
45+
),
46+
xPrefExt=dict(argstr='--xPrefExt %s',
47+
),
48+
)
49+
inputs = JistBrainMp2rageSkullStripping.input_spec()
50+
51+
for key, metadata in input_map.items():
52+
for metakey, value in metadata.items():
53+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
54+
55+
def test_JistBrainMp2rageSkullStripping_outputs():
56+
output_map = dict(outBrain=dict(),
57+
outMasked=dict(),
58+
outMasked2=dict(),
59+
outMasked3=dict(),
60+
)
61+
outputs = JistBrainMp2rageSkullStripping.output_spec()
62+
63+
for key, metadata in output_map.items():
64+
for metakey, value in metadata.items():
65+
yield assert_equal, getattr(outputs.traits()[key], metakey), value
66+
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.mipav.developer import JistBrainPartialVolumeFilter
4+
5+
def test_JistBrainPartialVolumeFilter_inputs():
6+
input_map = dict(args=dict(argstr='%s',
7+
),
8+
environ=dict(nohash=True,
9+
usedefault=True,
10+
),
11+
ignore_exception=dict(nohash=True,
12+
usedefault=True,
13+
),
14+
inInput=dict(argstr='--inInput %s',
15+
),
16+
inPV=dict(argstr='--inPV %s',
17+
),
18+
inoutput=dict(argstr='--inoutput %s',
19+
),
20+
null=dict(argstr='--null %s',
21+
),
22+
outPartial=dict(argstr='--outPartial %s',
23+
hash_files=False,
24+
),
25+
terminal_output=dict(mandatory=True,
26+
nohash=True,
27+
),
28+
xDefaultMem=dict(argstr='-xDefaultMem %d',
29+
),
30+
xMaxProcess=dict(argstr='-xMaxProcess %d',
31+
usedefault=True,
32+
),
33+
xPrefExt=dict(argstr='--xPrefExt %s',
34+
),
35+
)
36+
inputs = JistBrainPartialVolumeFilter.input_spec()
37+
38+
for key, metadata in input_map.items():
39+
for metakey, value in metadata.items():
40+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
41+
42+
def test_JistBrainPartialVolumeFilter_outputs():
43+
output_map = dict(outPartial=dict(),
44+
)
45+
outputs = JistBrainPartialVolumeFilter.output_spec()
46+
47+
for key, metadata in output_map.items():
48+
for metakey, value in metadata.items():
49+
yield assert_equal, getattr(outputs.traits()[key], metakey), value
50+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.mipav.developer import JistCortexSurfaceMeshInflation
4+
5+
def test_JistCortexSurfaceMeshInflation_inputs():
6+
input_map = dict(args=dict(argstr='%s',
7+
),
8+
environ=dict(nohash=True,
9+
usedefault=True,
10+
),
11+
ignore_exception=dict(nohash=True,
12+
usedefault=True,
13+
),
14+
inLevelset=dict(argstr='--inLevelset %s',
15+
),
16+
inLorentzian=dict(argstr='--inLorentzian %s',
17+
),
18+
inMax=dict(argstr='--inMax %d',
19+
),
20+
inMean=dict(argstr='--inMean %f',
21+
),
22+
inSOR=dict(argstr='--inSOR %f',
23+
),
24+
inStep=dict(argstr='--inStep %d',
25+
),
26+
inTopology=dict(argstr='--inTopology %s',
27+
),
28+
null=dict(argstr='--null %s',
29+
),
30+
outInflated=dict(argstr='--outInflated %s',
31+
hash_files=False,
32+
),
33+
outOriginal=dict(argstr='--outOriginal %s',
34+
hash_files=False,
35+
),
36+
terminal_output=dict(mandatory=True,
37+
nohash=True,
38+
),
39+
xDefaultMem=dict(argstr='-xDefaultMem %d',
40+
),
41+
xMaxProcess=dict(argstr='-xMaxProcess %d',
42+
usedefault=True,
43+
),
44+
xPrefExt=dict(argstr='--xPrefExt %s',
45+
),
46+
)
47+
inputs = JistCortexSurfaceMeshInflation.input_spec()
48+
49+
for key, metadata in input_map.items():
50+
for metakey, value in metadata.items():
51+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
52+
53+
def test_JistCortexSurfaceMeshInflation_outputs():
54+
output_map = dict(outInflated=dict(),
55+
outOriginal=dict(),
56+
)
57+
outputs = JistCortexSurfaceMeshInflation.output_spec()
58+
59+
for key, metadata in output_map.items():
60+
for metakey, value in metadata.items():
61+
yield assert_equal, getattr(outputs.traits()[key], metakey), value
62+
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.mipav.developer import JistIntensityMp2rageMasking
4+
5+
def test_JistIntensityMp2rageMasking_inputs():
6+
input_map = dict(args=dict(argstr='%s',
7+
),
8+
environ=dict(nohash=True,
9+
usedefault=True,
10+
),
11+
ignore_exception=dict(nohash=True,
12+
usedefault=True,
13+
),
14+
inBackground=dict(argstr='--inBackground %s',
15+
),
16+
inMasking=dict(argstr='--inMasking %s',
17+
),
18+
inQuantitative=dict(argstr='--inQuantitative %s',
19+
),
20+
inSecond=dict(argstr='--inSecond %s',
21+
),
22+
inSkip=dict(argstr='--inSkip %s',
23+
),
24+
inT1weighted=dict(argstr='--inT1weighted %s',
25+
),
26+
null=dict(argstr='--null %s',
27+
),
28+
outMasked=dict(argstr='--outMasked %s',
29+
hash_files=False,
30+
),
31+
outMasked2=dict(argstr='--outMasked2 %s',
32+
hash_files=False,
33+
),
34+
outSignal=dict(argstr='--outSignal %s',
35+
hash_files=False,
36+
),
37+
outSignal2=dict(argstr='--outSignal2 %s',
38+
hash_files=False,
39+
),
40+
terminal_output=dict(mandatory=True,
41+
nohash=True,
42+
),
43+
xDefaultMem=dict(argstr='-xDefaultMem %d',
44+
),
45+
xMaxProcess=dict(argstr='-xMaxProcess %d',
46+
usedefault=True,
47+
),
48+
xPrefExt=dict(argstr='--xPrefExt %s',
49+
),
50+
)
51+
inputs = JistIntensityMp2rageMasking.input_spec()
52+
53+
for key, metadata in input_map.items():
54+
for metakey, value in metadata.items():
55+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
56+
57+
def test_JistIntensityMp2rageMasking_outputs():
58+
output_map = dict(outMasked=dict(),
59+
outMasked2=dict(),
60+
outSignal=dict(),
61+
outSignal2=dict(),
62+
)
63+
outputs = JistIntensityMp2rageMasking.output_spec()
64+
65+
for key, metadata in output_map.items():
66+
for metakey, value in metadata.items():
67+
yield assert_equal, getattr(outputs.traits()[key], metakey), value
68+

0 commit comments

Comments
 (0)