Skip to content

Commit 2820411

Browse files
committed
fix: address @effigies' comments
1 parent 4af4c07 commit 2820411

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nipype/interfaces/ants/segmentation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ class N4BiasFieldCorrectionInputSpec(ANTSCommandInputSpec):
309309
desc='copy headers of the original image into the '
310310
'output (corrected) file')
311311
rescale_intensities = traits.Bool(
312-
False, usedefault=True, argstr='-r',
312+
False, usedefault=True, argstr='-r', min_ver='2.1.0',
313313
desc="""\
314314
[NOTE: Only ANTs>=2.1.0]
315315
At each iteration, a new intensity mapping is calculated and applied but there
@@ -423,8 +423,8 @@ def _parse_inputs(self, skip=None):
423423
bias_image = self.inputs.bias_image
424424
if not isdefined(bias_image):
425425
bias_image = fname_presuffix(os.path.basename(self.inputs.input_image),
426-
suffix='_bias', newpath=os.getcwd())
427-
self._out_bias_file = bias_image
426+
suffix='_bias')
427+
self._out_bias_file = os.path.abspath(bias_image)
428428
return super(N4BiasFieldCorrection, self)._parse_inputs(skip=skip)
429429

430430
def _list_outputs(self):

nipype/interfaces/ants/tests/test_auto_N4BiasFieldCorrection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def test_N4BiasFieldCorrection_inputs():
4848
),
4949
rescale_intensities=dict(
5050
argstr='-r',
51+
min_ver='2.1.0',
5152
usedefault=True,
5253
),
5354
save_bias=dict(

0 commit comments

Comments
 (0)