Skip to content

Commit 4a2e9dc

Browse files
committed
Merge pull request #753 from chrisfilo/fix/AFNI_relpath
Fix/afni relpath
2 parents 571d4bb + 091577f commit 4a2e9dc

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ class TShiftInputSpec(AFNICommandInputSpec):
8686
argstr='%s',
8787
position=-1,
8888
mandatory=True,
89-
exists=True)
89+
exists=True,
90+
copyfile=False)
9091

9192
out_file = File(name_template="%s_tshift", desc='output image file name',
9293
argstr='-prefix %s', name_source="in_file")
@@ -269,7 +270,8 @@ class ResampleInputSpec(AFNICommandInputSpec):
269270
argstr='-inset %s',
270271
position=-1,
271272
mandatory=True,
272-
exists=True)
273+
exists=True,
274+
copyfile=False)
273275

274276
out_file = File(name_template="%s_resample", desc='output image file name',
275277
argstr='-prefix %s', name_source="in_file")

nipype/interfaces/afni/tests/test_auto_Resample.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ def test_Resample_inputs():
2121
),
2222
master=dict(argstr='-master %s',
2323
),
24-
in_file=dict(position=-1,
24+
in_file=dict(copyfile=False,
2525
mandatory=True,
26+
position=-1,
2627
argstr='-inset %s',
2728
),
2829
environ=dict(nohash=True,

nipype/interfaces/afni/tests/test_auto_TShift.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ def test_TShift_inputs():
3131
tslice=dict(xor=['tzero'],
3232
argstr='-slice %s',
3333
),
34-
in_file=dict(position=-1,
34+
in_file=dict(copyfile=False,
3535
mandatory=True,
36+
position=-1,
3637
argstr='%s',
3738
),
3839
rlt=dict(argstr='-rlt',

0 commit comments

Comments
 (0)