FIX: Remove no-effect abspaths
@@ -326,12 +326,12 @@ class ResampleBeforeAfterRPT(SimpleBeforeAfterRPT):
resampled_after = nli.resample_to_img(self._fixed_image, self._moving_image)
fname = fname_presuffix(self._fixed_image, suffix='_resampled', newpath=runtime.cwd)
resampled_after.to_filename(fname)
- self._fixed_image = os.path.abspath(fname)
+ self._fixed_image = fname
else:
resampled_before = nli.resample_to_img(self._moving_image, self._fixed_image)
fname = fname_presuffix(self._moving_image, suffix='_resampled', newpath=runtime.cwd)
resampled_before.to_filename(fname)
- self._moving_image = os.path.abspath(fname)
+ self._moving_image = fname
self._contour = self.inputs.wm_seg if isdefined(self.inputs.wm_seg) else None
NIWORKFLOWS_LOG.info(
'Report - setting before (%s) and after (%s) images',
