Skip to content

Commit

Permalink
changed autotune to no_autotune
Browse files Browse the repository at this point in the history
  • Loading branch information
yfukai committed Mar 25, 2024
1 parent 30e602f commit 1d5bbb7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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].",
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1d5bbb7

Please sign in to comment.