Skip to content

Commit 1a4e640

Browse files
authored
Merge pull request #2224 from jdkent/Fix3dUndump
[FIX] 3dUndump interface
2 parents 56b7c81 + f1a76cb commit 1a4e640

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

nipype/interfaces/afni/tests/test_auto_Undump.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ def test_Undump_inputs():
3232
num_threads=dict(nohash=True,
3333
usedefault=True,
3434
),
35+
orient=dict(argstr='-orient %s',
36+
),
3537
out_file=dict(argstr='-prefix %s',
3638
name_source='in_file',
3739
),
3840
outputtype=dict(),
39-
srad=dict(argstr='-srad -%f',
41+
srad=dict(argstr='-srad %f',
4042
),
4143
terminal_output=dict(deprecated='1.0.0',
4244
nohash=True,

nipype/interfaces/afni/utils.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2096,13 +2096,20 @@ class UndumpInputSpec(AFNICommandInputSpec):
20962096
desc='radius in mm of the sphere that will be filled about each input '
20972097
'(x,y,z) or (i,j,k) voxel. If the radius is not given, or is 0, '
20982098
'then each input data line sets the value in only one voxel.',
2099-
argstr='-srad -%f')
2100-
srad = traits.Tuple(
2099+
argstr='-srad %f')
2100+
orient = traits.Tuple(
21012101
traits.Enum('R', 'L'), traits.Enum('A', 'P'), traits.Enum('I', 'S'),
2102-
desc='radius in mm of the sphere that will be filled about each input '
2103-
'(x,y,z) or (i,j,k) voxel. If the radius is not given, or is 0, '
2104-
'then each input data line sets the value in only one voxel.',
2105-
argstr='-srad -%f')
2102+
desc='Specifies the coordinate order used by -xyz. '
2103+
'The code must be 3 letters, one each from the pairs '
2104+
'{R,L} {A,P} {I,S}. The first letter gives the '
2105+
'orientation of the x-axis, the second the orientation '
2106+
'of the y-axis, the third the z-axis: '
2107+
'R = right-to-left L = left-to-right '
2108+
'A = anterior-to-posterior P = posterior-to-anterior '
2109+
'I = inferior-to-superior S = superior-to-inferior '
2110+
'If -orient isn\'t used, then the coordinate order of the '
2111+
'-master (in_file) dataset is used to interpret (x,y,z) inputs.',
2112+
argstr='-orient %s')
21062113
head_only = traits.Bool(
21072114
desc='create only the .HEAD file which gets exploited by '
21082115
'the AFNI matlab library function New_HEAD.m',

0 commit comments

Comments
 (0)