-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
574 additions
and
34 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
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
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,71 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from __future__ import unicode_literals | ||
from ..utils import Localstat | ||
|
||
|
||
def test_Localstat_inputs(): | ||
input_map = dict( | ||
args=dict(argstr='%s', ), | ||
automask=dict(argstr='-automask', ), | ||
environ=dict( | ||
nohash=True, | ||
usedefault=True, | ||
), | ||
grid_rmode=dict( | ||
argstr='-grid_rmode %s', | ||
requires=['reduce_restore_grid'], | ||
), | ||
in_file=dict( | ||
argstr='%s', | ||
mandatory=True, | ||
position=-1, | ||
), | ||
mask_file=dict(argstr='-mask %s', ), | ||
neighborhood=dict( | ||
argstr="-nbhd '%s(%s)'", | ||
mandatory=True, | ||
), | ||
nonmask=dict(argstr='-use_nonmask', ), | ||
num_threads=dict( | ||
nohash=True, | ||
usedefault=True, | ||
), | ||
out_file=dict( | ||
argstr='-prefix %s', | ||
keep_extension=True, | ||
name_source='in_file', | ||
name_template='%s_localstat', | ||
position=0, | ||
), | ||
outputtype=dict(), | ||
overwrite=dict(argstr='-overwrite', ), | ||
quiet=dict(argstr='-quiet', ), | ||
reduce_grid=dict( | ||
argstr='-reduce_grid %s', | ||
xor=['reduce_restore_grid', 'reduce_max_vox'], | ||
), | ||
reduce_max_vox=dict( | ||
argstr='-reduce_max_vox %s', | ||
xor=['reduce_restore_grid', 'reduce_grid'], | ||
), | ||
reduce_restore_grid=dict( | ||
argstr='-reduce_restore_grid %s', | ||
xor=['reduce_max_vox', 'reduce_grid'], | ||
), | ||
stat=dict( | ||
argstr='-stat %s...', | ||
mandatory=True, | ||
), | ||
) | ||
inputs = Localstat.input_spec() | ||
|
||
for key, metadata in list(input_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
assert getattr(inputs.traits()[key], metakey) == value | ||
def test_Localstat_outputs(): | ||
output_map = dict(out_file=dict(), ) | ||
outputs = Localstat.output_spec() | ||
|
||
for key, metadata in list(output_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
assert 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
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,56 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from __future__ import unicode_literals | ||
from ..utils import ReHo | ||
|
||
|
||
def test_ReHo_inputs(): | ||
input_map = dict( | ||
args=dict(argstr='%s', ), | ||
chi_sq=dict(argstr='-chi_sq', ), | ||
ellipsoid=dict( | ||
argstr='-neigh_X %s -neigh_Y %s -neigh_Z %s', | ||
xor=['sphere', 'neighborhood'], | ||
), | ||
environ=dict( | ||
nohash=True, | ||
usedefault=True, | ||
), | ||
in_file=dict( | ||
argstr='-inset %s', | ||
mandatory=True, | ||
position=1, | ||
), | ||
label_set=dict(argstr='-in_rois %s', ), | ||
mask=dict(argstr='-mask %s', ), | ||
neighborhood=dict( | ||
argstr='-nneigh %s', | ||
xor=['sphere', 'ellipsoid'], | ||
), | ||
out_file=dict( | ||
argstr='-prefix %s', | ||
keep_extension=True, | ||
name_source='in_file', | ||
name_template='%s_localstat', | ||
position=0, | ||
), | ||
overwrite=dict(argstr='-overwrite', ), | ||
sphere=dict( | ||
argstr='-neigh_RAD %s', | ||
xor=['neighborhood', 'ellipsoid'], | ||
), | ||
) | ||
inputs = ReHo.input_spec() | ||
|
||
for key, metadata in list(input_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
assert getattr(inputs.traits()[key], metakey) == value | ||
def test_ReHo_outputs(): | ||
output_map = dict( | ||
out_file=dict(), | ||
out_vals=dict(), | ||
) | ||
outputs = ReHo.output_spec() | ||
|
||
for key, metadata in list(output_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
assert getattr(outputs.traits()[key], metakey) == value |
Oops, something went wrong.