Skip to content

Commit

Permalink
add --source_prod_id as arg to generate config
Browse files Browse the repository at this point in the history
  • Loading branch information
vuillaut committed Feb 29, 2024
1 parent f3c6e79 commit 844ade2
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lstmcpipe/scripts/lstmcpipe_generate_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,19 @@ def build_argparser():
default=None,
)

parser.add_argument("--dec_list", nargs="+", help="Use only with AllSkyFull prods", default=None)
parser.add_argument(

Check warning on line 71 in lstmcpipe/scripts/lstmcpipe_generate_config.py

View check run for this annotation

Codecov / codecov/patch

lstmcpipe/scripts/lstmcpipe_generate_config.py#L71

Added line #L71 was not covered by tests
"--dec_list",
nargs="+",
help="Use only with AllSkyFull prods",
default=None,
)

parser.add_argument(

Check warning on line 78 in lstmcpipe/scripts/lstmcpipe_generate_config.py

View check run for this annotation

Codecov / codecov/patch

lstmcpipe/scripts/lstmcpipe_generate_config.py#L78

Added line #L78 was not covered by tests
"--source_prod_id",
type=str,
help="Use only with prods starting from an existing source prod",
default=None,
)

parser.add_argument(
"--kwargs",
Expand All @@ -93,6 +105,8 @@ def main():
kwargs = {}
if args.dec_list:
kwargs.update({"dec_list": args.dec_list})
if args.source_prod_id:
kwargs.update({"source_prod_id": args.source_prod_id})

Check warning on line 109 in lstmcpipe/scripts/lstmcpipe_generate_config.py

View check run for this annotation

Codecov / codecov/patch

lstmcpipe/scripts/lstmcpipe_generate_config.py#L108-L109

Added lines #L108 - L109 were not covered by tests
if args.kwargs:
kwargs.update(args.kwargs)

Expand Down

0 comments on commit 844ade2

Please sign in to comment.