File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -94,16 +94,20 @@ class antsIntroduction(ANTSCommand):
94
94
95
95
def _list_outputs (self ):
96
96
outputs = self ._outputs ().get ()
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' ]:
101
+ outputs ['warp_field' ] = os .path .join (os .getcwd (),
102
+ self .inputs .out_prefix +
103
+ 'Warp.nii.gz' )
104
+ outputs ['inverse_warp_field' ] = os .path .join (os .getcwd (),
105
+ self .inputs .out_prefix +
106
+ 'InverseWarp.nii.gz' )
97
107
98
108
outputs ['affine_transformation' ] = os .path .join (os .getcwd (),
99
109
self .inputs .out_prefix +
100
110
'Affine.txt' )
101
- outputs ['warp_field' ] = os .path .join (os .getcwd (),
102
- self .inputs .out_prefix +
103
- 'Warp.nii.gz' )
104
- outputs ['inverse_warp_field' ] = os .path .join (os .getcwd (),
105
- self .inputs .out_prefix +
106
- 'InverseWarp.nii.gz' )
107
111
outputs ['input_file' ] = os .path .join (os .getcwd (),
108
112
self .inputs .out_prefix +
109
113
'repaired.nii.gz' )
You can’t perform that action at this time.
0 commit comments