Skip to content

Commit

Permalink
Merge pull request #10 from CBICA/ag-dev
Browse files Browse the repository at this point in the history
small futureproofing for argparse
  • Loading branch information
AlexanderGetka-cbica authored Dec 6, 2024
2 parents 2642dda + 61e8237 commit 5423f4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DLICV/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def main() -> None:
)
parser.add_argument(
"-o",
"out_dir",
"--out_dir",
type=str,
required=True,
help="[REQUIRED] Output folder. If it does not exist it will be created. Predicted segmentations will have the same name as their source images.",
Expand Down Expand Up @@ -204,6 +204,8 @@ def main() -> None:

args = parser.parse_args()
args.f = [0]
args.i = args.in_dir
args.o = args.out_dir

if args.clear_cache:
shutil.rmtree(os.path.join(Path(__file__).parent, "nnunet_results"))
Expand Down

0 comments on commit 5423f4d

Please sign in to comment.