Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
173 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from ...testing import assert_equal | ||
from ..confounds import CompCor | ||
|
||
|
||
def test_CompCor_inputs(): | ||
input_map = dict(components_file=dict(mandatory=False, | ||
usedefault=True, | ||
), | ||
ignore_exception=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
mask_file=dict(mandatory=False, | ||
), | ||
num_components=dict(usedefault=True, | ||
), | ||
realigned_file=dict(mandatory=True, | ||
), | ||
regress_poly_degree=dict(usedefault=True, | ||
), | ||
use_regress_poly=dict(usedefault=True, | ||
), | ||
) | ||
inputs = CompCor.input_spec() | ||
|
||
for key, metadata in list(input_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
yield assert_equal, getattr(inputs.traits()[key], metakey), value | ||
|
||
|
||
def test_CompCor_outputs(): | ||
output_map = dict(components_file=dict(), | ||
) | ||
outputs = CompCor.output_spec() | ||
|
||
for key, metadata in list(output_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
yield assert_equal, getattr(outputs.traits()[key], metakey), value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from ...testing import assert_equal | ||
from ..confounds import TCompCor | ||
|
||
|
||
def test_TCompCor_inputs(): | ||
input_map = dict(components_file=dict(mandatory=False, | ||
usedefault=True, | ||
), | ||
ignore_exception=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
mask_file=dict(mandatory=False, | ||
), | ||
num_components=dict(usedefault=True, | ||
), | ||
percentile_threshold=dict(usedefault=True, | ||
), | ||
realigned_file=dict(mandatory=True, | ||
), | ||
regress_poly_degree=dict(usedefault=True, | ||
), | ||
use_regress_poly=dict(usedefault=True, | ||
), | ||
) | ||
inputs = TCompCor.input_spec() | ||
|
||
for key, metadata in list(input_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
yield assert_equal, getattr(inputs.traits()[key], metakey), value | ||
|
||
|
||
def test_TCompCor_outputs(): | ||
output_map = dict(components_file=dict(), | ||
) | ||
outputs = TCompCor.output_spec() | ||
|
||
for key, metadata in list(output_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
yield assert_equal, getattr(outputs.traits()[key], metakey), value |
53 changes: 53 additions & 0 deletions
53
nipype/interfaces/semtools/brains/tests/test_auto_GenerateEdgeMapImage.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from .....testing import assert_equal | ||
from ..utilities import GenerateEdgeMapImage | ||
|
||
|
||
def test_GenerateEdgeMapImage_inputs(): | ||
input_map = dict(args=dict(argstr='%s', | ||
), | ||
environ=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
ignore_exception=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
inputMRVolumes=dict(argstr='--inputMRVolumes %s...', | ||
), | ||
inputMask=dict(argstr='--inputMask %s', | ||
), | ||
lowerPercentileMatching=dict(argstr='--lowerPercentileMatching %f', | ||
), | ||
maximumOutputRange=dict(argstr='--maximumOutputRange %d', | ||
), | ||
minimumOutputRange=dict(argstr='--minimumOutputRange %d', | ||
), | ||
numberOfThreads=dict(argstr='--numberOfThreads %d', | ||
), | ||
outputEdgeMap=dict(argstr='--outputEdgeMap %s', | ||
hash_files=False, | ||
), | ||
outputMaximumGradientImage=dict(argstr='--outputMaximumGradientImage %s', | ||
hash_files=False, | ||
), | ||
terminal_output=dict(nohash=True, | ||
), | ||
upperPercentileMatching=dict(argstr='--upperPercentileMatching %f', | ||
), | ||
) | ||
inputs = GenerateEdgeMapImage.input_spec() | ||
|
||
for key, metadata in list(input_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
yield assert_equal, getattr(inputs.traits()[key], metakey), value | ||
|
||
|
||
def test_GenerateEdgeMapImage_outputs(): | ||
output_map = dict(outputEdgeMap=dict(), | ||
outputMaximumGradientImage=dict(), | ||
) | ||
outputs = GenerateEdgeMapImage.output_spec() | ||
|
||
for key, metadata in list(output_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
yield assert_equal, getattr(outputs.traits()[key], metakey), value |
42 changes: 42 additions & 0 deletions
42
nipype/interfaces/semtools/brains/tests/test_auto_GeneratePurePlugMask.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from .....testing import assert_equal | ||
from ..utilities import GeneratePurePlugMask | ||
|
||
|
||
def test_GeneratePurePlugMask_inputs(): | ||
input_map = dict(args=dict(argstr='%s', | ||
), | ||
environ=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
ignore_exception=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
inputImageModalities=dict(argstr='--inputImageModalities %s...', | ||
), | ||
numberOfSubSamples=dict(argstr='--numberOfSubSamples %s', | ||
sep=',', | ||
), | ||
outputMaskFile=dict(argstr='--outputMaskFile %s', | ||
hash_files=False, | ||
), | ||
terminal_output=dict(nohash=True, | ||
), | ||
threshold=dict(argstr='--threshold %f', | ||
), | ||
) | ||
inputs = GeneratePurePlugMask.input_spec() | ||
|
||
for key, metadata in list(input_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
yield assert_equal, getattr(inputs.traits()[key], metakey), value | ||
|
||
|
||
def test_GeneratePurePlugMask_outputs(): | ||
output_map = dict(outputMaskFile=dict(), | ||
) | ||
outputs = GeneratePurePlugMask.output_spec() | ||
|
||
for key, metadata in list(output_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
yield assert_equal, getattr(outputs.traits()[key], metakey), value |