From 3a9d9fa8166f880da0eb8b1ebac98a8d2269f0fb Mon Sep 17 00:00:00 2001 From: Steven Meisler Date: Wed, 20 Dec 2023 08:39:49 -0500 Subject: [PATCH] Update fmap.py --- sdcflows/interfaces/fmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")