From 2b9ac58263de7c8aa5c996f32a3ed9ad8219d776 Mon Sep 17 00:00:00 2001 From: "Michael Kavulich, Jr" Date: Thu, 27 Jul 2023 22:26:50 -0600 Subject: [PATCH] Fix linting for generate_FV3LAM_wflow.py --- ush/generate_FV3LAM_wflow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ush/generate_FV3LAM_wflow.py b/ush/generate_FV3LAM_wflow.py index 48e4a7c8b9..8c766fdb1f 100755 --- a/ush/generate_FV3LAM_wflow.py +++ b/ush/generate_FV3LAM_wflow.py @@ -549,7 +549,7 @@ def generate_FV3LAM_wflow( # # populate the namelist file # - args=[ "-n", FV3_NML_FP, + args=[ "-n", FV3_NML_FP, "-u", settings_str, "-o", FV3_NML_CYCSFC_FP, ] @@ -834,7 +834,7 @@ def setup_logging(logfile: str = "log.generate_FV3LAM_wflow", debug: bool = Fals parser.add_argument('-d', '--debug', action='store_true', help='Script will be run in debug mode with more verbose output') - args = parser.parse_args() + pargs = parser.parse_args() USHdir = os.path.dirname(os.path.abspath(__file__)) wflow_logfile = f"{USHdir}/log.generate_FV3LAM_wflow" @@ -842,7 +842,7 @@ def setup_logging(logfile: str = "log.generate_FV3LAM_wflow", debug: bool = Fals # Call the generate_FV3LAM_wflow function defined above to generate the # experiment/workflow. try: - expt_dir = generate_FV3LAM_wflow(USHdir, wflow_logfile, args.debug) + expt_dir = generate_FV3LAM_wflow(USHdir, wflow_logfile, pargs.debug) except: # pylint: disable=bare-except logging.exception( dedent(