Skip to content

Commit

Permalink
Change os.rename to shutil.move to allow file overwriting in `ren…
Browse files Browse the repository at this point in the history
…ame_nifti_files`

This commit replaces the use of `os.rename` with `shutil.move` in the `rename_nifti_files` function. The change allows the function to overwrite files if they already exist in the target directory, resolving the FileExistsError that occurred when attempting to rename NIFTI files with names that already exist.
  • Loading branch information
LalithShiyam committed Oct 18, 2023
1 parent 62d066e commit 65cecbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='moosez',
version='2.2.36',
version='2.2.37',
author='Lalith Kumar Shiyam Sundar | Sebastian Gutschmayer',
author_email='[email protected]',
description='An AI-inference engine for 3D clinical and preclinical whole-body segmentation tasks',
Expand Down

0 comments on commit 65cecbe

Please sign in to comment.