Skip to content

Commit 0612a37

Browse files
committed
add isdefined(transmode)
1 parent ecb3713 commit 0612a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/ants/legacy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def _list_outputs(self):
9797
transmodel = self.inputs.transformation_model
9898

9999
# When transform is set as 'RI'/'RA', no wrap fields will be outputed
100-
if transmodel not in ['RI', 'RA']:
100+
if isdefined(transmodel) and transmodel not in ['RI', 'RA']:
101101
outputs['warp_field'] = os.path.join(os.getcwd(),
102102
self.inputs.out_prefix +
103103
'Warp.nii.gz')

0 commit comments

Comments
 (0)