Skip to content

Commit

Permalink
Format utils.py and init.py
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Nov 22, 2024
1 parent 9f78a42 commit 885eef9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DLWMLS/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def main() -> None:
model_folder = os.path.join(
Path(__file__).parent,
"nnunet_results",
"Dataset004_Dataset003_qcedCorrected/nnUNetTrainer__nnUNetPlans__3d_fullres"
"Dataset004_Dataset003_qcedCorrected/nnUNetTrainer__nnUNetPlans__3d_fullres",
# "Dataset%s_Dataset%s_dlwmlsICVAll/nnUNetTrainer__nnUNetPlans__%s"
# "Dataset%s_Task%s_DLWMLSV2/nnUNetTrainer__nnUNetPlans__%s/"
# % (args.d, args.d, args.c),
Expand Down
5 changes: 4 additions & 1 deletion DLWMLS/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def rename_and_copy_files(src_folder: str, des_folder: str) -> Tuple[dict, dict]
shutil.copy2(old_name, new_name)
rename_dict[filename] = rename_file
rename_back_dict[rename_back] = filename.split(".nii")[0] + "_WMLS.nii.gz"
print("%s will be renamed to %s" % (old_name, filename.split(".nii")[0] + "_WMLS.nii.gz"))
print(
"%s will be renamed to %s"
% (old_name, filename.split(".nii")[0] + "_WMLS.nii.gz")
)

return rename_dict, rename_back_dict

0 comments on commit 885eef9

Please sign in to comment.