Skip to content

Commit

Permalink
Fix linting for generate_FV3LAM_wflow.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mkavulich committed Aug 15, 2023
1 parent f646f3b commit 2b9ac58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ush/generate_FV3LAM_wflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
Expand Down Expand Up @@ -834,15 +834,15 @@ 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"

# 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(
Expand Down

0 comments on commit 2b9ac58

Please sign in to comment.