From d3ec634fdf5d91455377dafce870120a62d0c277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20POIRET?= Date: Mon, 12 Jul 2021 10:23:41 +0200 Subject: [PATCH] Fixed incorrect output filename --- pyproject.toml | 2 +- roiloc/roiloc.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 91de368..4eece3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ROILoc" -version = "0.1.0" +version = "0.1.1" description = "" license = "MIT" readme = "README.rst" diff --git a/roiloc/roiloc.py b/roiloc/roiloc.py index cfefccc..5737fbe 100644 --- a/roiloc/roiloc.py +++ b/roiloc/roiloc.py @@ -72,14 +72,14 @@ def main(args): idx=int(rois_idx[roi][i]), output_dir=str(image_path.parent), output_file= - f"{stem}_{args.roi}_{side}_{args.transform}_mask.nii.gz", + f"{stem}_{roi}_{side}_{args.transform}_mask.nii.gz", save=True) coords = get_coords(region.numpy(), margin=args.margin) crop( image_path, coords, image_path.parent / - f"{stem}_{args.roi}_{side}_{args.transform}_crop.nii.gz") + f"{stem}_{roi}_{side}_{args.transform}_crop.nii.gz") print("[bold green]Done! :)")