-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2948 from gpiantoni/3dTsmooth
ENH: add interface for AFNI 3dTsmooth
- Loading branch information
Showing
3 changed files
with
129 additions
and
1 deletion.
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,55 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from __future__ import unicode_literals | ||
from ..preprocess import TSmooth | ||
|
||
|
||
def test_TSmooth_inputs(): | ||
input_map = dict( | ||
adaptive=dict(argstr='-adaptive %d', ), | ||
args=dict(argstr='%s', ), | ||
blackman=dict(argstr='-blackman %d', ), | ||
custom=dict( | ||
argstr='-custom %s', | ||
extensions=None, | ||
), | ||
datum=dict(argstr='-datum %s', ), | ||
environ=dict( | ||
nohash=True, | ||
usedefault=True, | ||
), | ||
hamming=dict(argstr='-hamming %d', ), | ||
in_file=dict( | ||
argstr='%s', | ||
copyfile=False, | ||
extensions=None, | ||
mandatory=True, | ||
position=-1, | ||
), | ||
lin=dict(argstr='-lin', ), | ||
lin3=dict(argstr='-3lin %d', ), | ||
med=dict(argstr='-med', ), | ||
num_threads=dict( | ||
nohash=True, | ||
usedefault=True, | ||
), | ||
osf=dict(argstr='-osf', ), | ||
out_file=dict( | ||
argstr='-prefix %s', | ||
extensions=None, | ||
name_source='in_file', | ||
name_template='%s_smooth', | ||
), | ||
outputtype=dict(), | ||
) | ||
inputs = TSmooth.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_TSmooth_outputs(): | ||
output_map = dict(out_file=dict(extensions=None, ), ) | ||
outputs = TSmooth.output_spec() | ||
|
||
for key, metadata in list(output_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
assert getattr(outputs.traits()[key], metakey) == value |