From 78045196cd5884b6465f7a36f27429457495efd7 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Mon, 6 Dec 2021 20:30:14 +0100 Subject: [PATCH] Move input of date higher Because we are going to extract the rest of the script below into a function. --- Inst_eddies/inst_eddies_in.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Inst_eddies/inst_eddies_in.py b/Inst_eddies/inst_eddies_in.py index 7911a0dc..492a1f22 100755 --- a/Inst_eddies/inst_eddies_in.py +++ b/Inst_eddies/inst_eddies_in.py @@ -26,6 +26,8 @@ argparser.add_argument("file", nargs = "+", argparser.add_argument("-b", "--bbox", nargs=4, type = float, metavar = ("xmin", "xmax", "ymin", "ymax")) args = argparser.parse_args() +d = input("Enter first date (integer value):") +d = int(d) inst_eddies_exe = "@CMAKE_CURRENT_BINARY_DIR@/inst_eddies" if not os.access(inst_eddies_exe, os.X_OK): @@ -36,8 +38,6 @@ if os.access("main_nml.txt", os.R_OK): else: sys.exit('"main_nml.txt" not found') -d = input("Enter first date (integer value):") -d = int(d) nco_instance = nco.Nco() for orient in ["cyclo", "anti"]: -- GitLab