We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecb3713 commit 0612a37Copy full SHA for 0612a37
nipype/interfaces/ants/legacy.py
@@ -97,7 +97,7 @@ def _list_outputs(self):
97
transmodel = self.inputs.transformation_model
98
99
# When transform is set as 'RI'/'RA', no wrap fields will be outputed
100
- if transmodel not in ['RI', 'RA']:
+ if isdefined(transmodel) and transmodel not in ['RI', 'RA']:
101
outputs['warp_field'] = os.path.join(os.getcwd(),
102
self.inputs.out_prefix +
103
'Warp.nii.gz')
0 commit comments