Skip to content

Commit dd8eb81

Browse files
committed
NSRDB pipeline single job debug
Fixes #46
1 parent a31e5c8 commit dd8eb81

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nsrdb/cli.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,10 @@ def pipeline(ctx, config_file, cancel, monitor):
104104
help='Filepath to config file.')
105105
@click.option('--command', '-cmd', type=str, required=True,
106106
help='NSRDB CLI command string.')
107+
@click.option('--debug_day', '-doy', type=int, default=None,
108+
help='Integer day-of-year to run data model for.')
107109
@click.pass_context
108-
def config(ctx, config_file, command):
110+
def config(ctx, config_file, command, debug_day):
109111
"""NSRDB processing CLI from config json file."""
110112

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

127+
if debug_day is not None:
128+
cmd_args['doy_range'] = [debug_day, debug_day + 1]
129+
125130
# replace any args with higher priority entries in command dict
126131
for k in eagle_args.keys():
127132
if k in cmd_args:

0 commit comments

Comments
 (0)