Skip to content

Commit c37fcfb

Browse files
authored
Merge pull request #3188 from oesteban/fix/ants-n4-undefined
FIX: Partial rollback of N4BiasFieldCorrection
2 parents 75b598a + 7963e31 commit c37fcfb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nipype/interfaces/ants/segmentation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,11 @@ def _parse_inputs(self, skip=None):
537537
self._out_bias_file = bias_image
538538
return super(N4BiasFieldCorrection, self)._parse_inputs(skip=skip)
539539

540+
def _list_outputs(self):
541+
outputs = super(N4BiasFieldCorrection, self)._list_outputs()
542+
if self._out_bias_file:
543+
outputs["bias_image"] = os.path.abspath(self._out_bias_file)
544+
return outputs
540545

541546
class CorticalThicknessInputSpec(ANTSCommandInputSpec):
542547
dimension = traits.Enum(

0 commit comments

Comments
 (0)