Skip to content

Commit

Permalink
NSRDB pipeline single job debug
Browse files Browse the repository at this point in the history
Fixes #46
  • Loading branch information
bnb32 committed Mar 11, 2022
1 parent a31e5c8 commit dd8eb81
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nsrdb/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ def pipeline(ctx, config_file, cancel, monitor):
help='Filepath to config file.')
@click.option('--command', '-cmd', type=str, required=True,
help='NSRDB CLI command string.')
@click.option('--debug_day', '-doy', type=int, default=None,
help='Integer day-of-year to run data model for.')
@click.pass_context
def config(ctx, config_file, command):
def config(ctx, config_file, command, debug_day):
"""NSRDB processing CLI from config json file."""

config_dir = os.path.dirname(unstupify_path(config_file))
Expand All @@ -122,6 +124,9 @@ def config(ctx, config_file, command):
if cmd_args is None:
cmd_args = {}

if debug_day is not None:
cmd_args['doy_range'] = [debug_day, debug_day + 1]

# replace any args with higher priority entries in command dict
for k in eagle_args.keys():
if k in cmd_args:
Expand Down

0 comments on commit dd8eb81

Please sign in to comment.