Skip to content

Commit

Permalink
Fix variable names for parsers
Browse files Browse the repository at this point in the history
Changed mind about the names for the subparsers but had not updated
the variable names.

Refs: NOAA-EMC#1576
  • Loading branch information
WalterKolczynski-NOAA committed May 8, 2023
1 parent 005f866 commit 71680e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions workflow/setup_expt.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,13 @@ def input_args():
formatter_class=ArgumentDefaultsHelpFormatter)

# Set up sub-parsers for various modes of experimentation
modeparser = parser.add_subparsers(dest='system')
gfs = modeparser.add_parser('gfs', help='arguments for GFS')
gefs = modeparser.add_parser('gefs', help='arguments for GEFS')
sysparser = parser.add_subparsers(dest='system')
gfs = sysparser.add_parser('gfs', help='arguments for GFS')
gefs = sysparser.add_parser('gefs', help='arguments for GEFS')

typeparser = gfs.add_subparsers(dest='mode')
cycled = typeparser.add_parser('cycled', help='arguments for cycled mode')
forecasts = typeparser.add_parser('forecast-only', help='arguments for forecast-only mode')
modeparser = gfs.add_subparsers(dest='mode')
cycled = modeparser.add_parser('cycled', help='arguments for cycled mode')
forecasts = modeparser.add_parser('forecast-only', help='arguments for forecast-only mode')

# Common arguments across all modes
for subp in [cycled, forecasts, gefs]:
Expand Down

0 comments on commit 71680e4

Please sign in to comment.