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 11Next release
22============
3-
3+ * ENH: Updated antsIntroduction to handle RA and RI registrations (https://github.com/nipy/nipype/pull/1009)
44* ENH: Updated N4BiasCorrection input spec to include weight image and spline order. Made
55 argument formatting consistent. Cleaned ants.segmentation according to PEP8.
66 (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):
9494
9595 def _list_outputs (self ):
9696 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' )
97108
98109 outputs ['affine_transformation' ] = os .path .join (os .getcwd (),
99110 self .inputs .out_prefix +
100111 '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' )
107112 outputs ['input_file' ] = os .path .join (os .getcwd (),
108113 self .inputs .out_prefix +
109114 'repaired.nii.gz' )
You can’t perform that action at this time.
0 commit comments