Skip to content

Commit 54040e5

Browse files
committed
fix: allow file to be copied for workflow operation (don't allow inputs to be modified)
1 parent 2672703 commit 54040e5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nipype/interfaces/spm/utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ class CalcCoregAffine(SPMCommand):
6363
>>> coreg.inputs.mat = 'func_to_struct.mat'
6464
>>> coreg.run() # doctest: +SKIP
6565
66-
Notes
67-
-----
66+
.. note::
6867
6968
* the output file mat is saves as a matlab binary file
7069
* calculating the transforms does NOT change either input image
@@ -116,7 +115,7 @@ def _list_outputs(self):
116115
return outputs
117116

118117
class ApplyTransformInputSpec(SPMCommandInputSpec):
119-
in_file = File( exists = True, mandatory = True,
118+
in_file = File( exists = True, mandatory = True, copyfile=True,
120119
desc='file to apply transform to, (only updates header)')
121120
mat = File( exists = True, mandatory = True,
122121
desc='file holding transform to apply')
@@ -138,9 +137,10 @@ class ApplyTransform(SPMCommand):
138137
>>> applymat.inputs.mat = 'func_to_struct.mat'
139138
>>> applymat.run() # doctest: +SKIP
140139
141-
Notes
142-
-----
143-
CHANGES YOUR INPUT FILE (applies transform by updating the header)
140+
.. warning::
141+
142+
CHANGES YOUR INPUT FILE (applies transform by updating the header)
143+
except when used with nipype caching or workflow.
144144
"""
145145
input_spec = ApplyTransformInputSpec
146146
output_spec = ApplyTransformOutputSpec

0 commit comments

Comments
 (0)