From 1d5bbb7492dd81fae69ae7c28b9aabd212a718a3 Mon Sep 17 00:00:00 2001 From: Yohsuke Fukai Date: Tue, 26 Mar 2024 08:07:05 +0900 Subject: [PATCH] changed autotune to no_autotune --- main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 008fd18..9f4009a 100755 --- a/main.py +++ b/main.py @@ -104,10 +104,10 @@ def get_args(): help="Flag to calculate the darkfield [default=False].", ) optional.add_argument( - "-a", - "--autotune", - dest="autotune", - action="store_true", + "-na", + "--no_autotune", + dest="no_autotune", + action="store_false", required=False, default=True, help="Flag to autotune the parameters [default=True].", @@ -205,7 +205,7 @@ def main(args): raise RuntimeError( "The image is single sited. Was it saved in the correct way?" ) - if args.autotune: + if not args.no_autotune: basic.autotune( images_data, fourier_l0_norm_cost_coef=args.autotune_fourier_l0_norm_cost_coef, @@ -240,7 +240,7 @@ def main(args): raise RuntimeError( "The image is single sited. Was it saved in the correct way?" ) - if args.autotune: + if not args.no_autotune: basic.autotune( images_data, fourier_l0_norm_cost_coef=args.autotune_fourier_l0_norm_cost_coef,