File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
Next release
2
2
============
3
-
3
+ * ENH: Updated antsIntroduction to handle RA and RI registrations (https://github.com/nipy/nipype/pull/1009)
4
4
* ENH: Updated N4BiasCorrection input spec to include weight image and spline order. Made
5
5
argument formatting consistent. Cleaned ants.segmentation according to PEP8.
6
6
(https://github.com/nipy/nipype/pull/990/files)
Original file line number Diff line number Diff line change @@ -94,16 +94,21 @@ 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', 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' ]):
102
+ outputs ['warp_field' ] = os .path .join (os .getcwd (),
103
+ self .inputs .out_prefix +
104
+ 'Warp.nii.gz' )
105
+ outputs ['inverse_warp_field' ] = os .path .join (os .getcwd (),
106
+ self .inputs .out_prefix +
107
+ 'InverseWarp.nii.gz' )
97
108
98
109
outputs ['affine_transformation' ] = os .path .join (os .getcwd (),
99
110
self .inputs .out_prefix +
100
111
'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
112
outputs ['input_file' ] = os .path .join (os .getcwd (),
108
113
self .inputs .out_prefix +
109
114
'repaired.nii.gz' )
You can’t perform that action at this time.
0 commit comments