Skip to content

Commit

Permalink
Merge pull request #419 from smeisler/fix/basename
Browse files Browse the repository at this point in the history
[FIX] Change `os.basename` to `os.path.basename`
  • Loading branch information
mgxd authored Dec 20, 2023
2 parents b073fbf + 3a9d9fa commit 00a2978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdcflows/interfaces/fmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 00a2978

Please sign in to comment.