Skip to content

[FIX] 3dUndump interface #2224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2017
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
4 changes: 3 additions & 1 deletion nipype/interfaces/afni/tests/test_auto_Undump.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ def test_Undump_inputs():
num_threads=dict(nohash=True,
usedefault=True,
),
orient=dict(argstr='-orient %s',
),
out_file=dict(argstr='-prefix %s',
name_source='in_file',
),
outputtype=dict(),
srad=dict(argstr='-srad -%f',
srad=dict(argstr='-srad %f',
),
terminal_output=dict(deprecated='1.0.0',
nohash=True,
Expand Down
19 changes: 13 additions & 6 deletions nipype/interfaces/afni/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2096,13 +2096,20 @@ class UndumpInputSpec(AFNICommandInputSpec):
desc='radius in mm of the sphere that will be filled about each input '
'(x,y,z) or (i,j,k) voxel. If the radius is not given, or is 0, '
'then each input data line sets the value in only one voxel.',
argstr='-srad -%f')
srad = traits.Tuple(
argstr='-srad %f')
orient = traits.Tuple(
traits.Enum('R', 'L'), traits.Enum('A', 'P'), traits.Enum('I', 'S'),
desc='radius in mm of the sphere that will be filled about each input '
'(x,y,z) or (i,j,k) voxel. If the radius is not given, or is 0, '
'then each input data line sets the value in only one voxel.',
argstr='-srad -%f')
desc='Specifies the coordinate order used by -xyz. '
'The code must be 3 letters, one each from the pairs '
'{R,L} {A,P} {I,S}. The first letter gives the '
'orientation of the x-axis, the second the orientation '
'of the y-axis, the third the z-axis: '
'R = right-to-left L = left-to-right '
'A = anterior-to-posterior P = posterior-to-anterior '
'I = inferior-to-superior S = superior-to-inferior '
'If -orient isn\'t used, then the coordinate order of the '
'-master (in_file) dataset is used to interpret (x,y,z) inputs.',
argstr='-orient %s')
head_only = traits.Bool(
desc='create only the .HEAD file which gets exploited by '
'the AFNI matlab library function New_HEAD.m',
Expand Down