Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions nipype/interfaces/afni/tests/test_auto_Volreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ def test_Volreg_inputs():
name_source='in_file',
name_template='%s.1D',
),
oned_matrix_save=dict(argstr='-1Dmatrix_save %s',
keep_extension=True,
name_source='in_file',
name_template='%s.aff12.1D',
),
out_file=dict(argstr='-prefix %s',
name_source='in_file',
name_template='%s_volreg',
Expand All @@ -57,6 +62,7 @@ def test_Volreg_inputs():
def test_Volreg_outputs():
output_map = dict(md1d_file=dict(),
oned_file=dict(),
oned_matrix_save=dict(),
out_file=dict(),
)
outputs = Volreg.output_spec()
Expand Down
65 changes: 65 additions & 0 deletions nipype/interfaces/ants/tests/test_auto_LaplacianThickness.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.ants.segmentation import LaplacianThickness

def test_LaplacianThickness_inputs():
input_map = dict(args=dict(argstr='%s',
),
dT=dict(argstr='dT=%d',
position=6,
),
environ=dict(nohash=True,
usedefault=True,
),
ignore_exception=dict(nohash=True,
usedefault=True,
),
input_gm=dict(argstr='%s',
copyfile=True,
mandatory=True,
position=2,
),
input_wm=dict(argstr='%s',
copyfile=True,
mandatory=True,
position=1,
),
num_threads=dict(nohash=True,
usedefault=True,
),
opt_tolerance=dict(argstr='optional-laplacian-tolerance=%d',
position=8,
),
output_image=dict(argstr='%s',
genfile=True,
hash_files=False,
position=3,
),
prior_thickness=dict(argstr='priorthickval=%d',
position=5,
),
smooth_param=dict(argstr='smoothparam=%d',
position=4,
),
sulcus_prior=dict(argstr='use-sulcus-prior',
position=7,
),
terminal_output=dict(mandatory=True,
nohash=True,
),
)
inputs = LaplacianThickness.input_spec()

for key, metadata in input_map.items():
for metakey, value in metadata.items():
yield assert_equal, getattr(inputs.traits()[key], metakey), value

def test_LaplacianThickness_outputs():
output_map = dict(output_image=dict(),
)
outputs = LaplacianThickness.output_spec()

for key, metadata in output_map.items():
for metakey, value in metadata.items():
yield assert_equal, getattr(outputs.traits()[key], metakey), value

44 changes: 44 additions & 0 deletions nipype/interfaces/tests/test_auto_SSHDataGrabber.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.io import SSHDataGrabber

def test_SSHDataGrabber_inputs():
input_map = dict(base_directory=dict(mandatory=True,
),
download_files=dict(usedefault=True,
),
hostname=dict(mandatory=True,
),
ignore_exception=dict(nohash=True,
usedefault=True,
),
password=dict(mandatory=False,
),
raise_on_empty=dict(usedefault=True,
),
sort_filelist=dict(mandatory=True,
),
ssh_log_to_file=dict(usedefault=True,
),
template=dict(mandatory=True,
),
template_args=dict(),
template_expression=dict(usedefault=True,
),
username=dict(mandatory=False,
),
)
inputs = SSHDataGrabber.input_spec()

for key, metadata in input_map.items():
for metakey, value in metadata.items():
yield assert_equal, getattr(inputs.traits()[key], metakey), value

def test_SSHDataGrabber_outputs():
output_map = dict()
outputs = SSHDataGrabber.output_spec()

for key, metadata in output_map.items():
for metakey, value in metadata.items():
yield assert_equal, getattr(outputs.traits()[key], metakey), value