Skip to content

Commit

Permalink
Fixed incorrect output filename
Browse files Browse the repository at this point in the history
  • Loading branch information
clementpoiret committed Jul 12, 2021
1 parent a727206 commit d3ec634
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ROILoc"
version = "0.1.0"
version = "0.1.1"
description = ""
license = "MIT"
readme = "README.rst"
Expand Down
4 changes: 2 additions & 2 deletions roiloc/roiloc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! :)")

Expand Down

0 comments on commit d3ec634

Please sign in to comment.