Skip to content

Commit 3209c42

Browse files
committed
consider default -t = GR
1 parent a8dbcc7 commit 3209c42

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nipype/interfaces/ants/legacy.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ def _list_outputs(self):
9696
outputs = self._outputs().get()
9797
transmodel = self.inputs.transformation_model
9898

99-
# When transform is set as 'RI'/'RA', no wrap fields will be outputed
100-
if isdefined(transmodel) and transmodel not in ['RI', 'RA']:
99+
# When transform is set as 'RI'/'RA', wrap fields should not be expected
100+
# The default transformation is GR, which outputs the wrap fields
101+
if not isdefined(transmodel) or (isdefined(transmodel) and transmodel not in ['RI', 'RA']):
101102
outputs['warp_field'] = os.path.join(os.getcwd(),
102103
self.inputs.out_prefix +
103104
'Warp.nii.gz')

0 commit comments

Comments
 (0)