diff --git a/sdcflows/interfaces/fmap.py b/sdcflows/interfaces/fmap.py index d40b7e74d4..58dc4e73f4 100644 --- a/sdcflows/interfaces/fmap.py +++ b/sdcflows/interfaces/fmap.py @@ -362,7 +362,7 @@ def _conform_img( if np.allclose(img.affine, target_img.affine): return img.get_filename() - basename = os.basename(img.get_filename()) + basename = os.path.basename(img.get_filename()) out_file = os.path.join(cwd, basename) LOGGER.info(f"Copying affine to {basename}")