Skip to content

Commit 5ffc014

Browse files
authored
Merge pull request #288 from cta-observatory/webmaker
Add no-gainsel option to sequencer_webmaker
2 parents 962da4d + 79cad1e commit 5ffc014

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Diff for: src/osa/scripts/sequencer_webmaker.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def html_content(body: str, date: str) -> str:
5555
)
5656

5757

58-
def get_sequencer_output(date: str, config: str, test=False) -> list:
58+
def get_sequencer_output(date: str, config: str, test=False, no_gainsel=False) -> list:
5959
"""Call sequencer to get table with the sequencer status report.
6060
6161
Parameters
@@ -82,6 +82,9 @@ def get_sequencer_output(date: str, config: str, test=False) -> list:
8282
options.tel_id,
8383
]
8484

85+
if no_gainsel:
86+
commandargs.insert(1, "--no-gainsel")
87+
8588
if test:
8689
commandargs.insert(-1, "-t")
8790

@@ -144,7 +147,7 @@ def main():
144147
sys.exit(1)
145148

146149
# Get the table with the sequencer status report:
147-
lines = get_sequencer_output(date, args.config, args.test)
150+
lines = get_sequencer_output(date, args.config, test=args.test, no_gainsel=args.no_gainsel)
148151

149152
# Build the html sequencer table that will be place in the body of the HTML file
150153
matrix = lines_to_matrix(lines)

Diff for: src/osa/utils/cliopts.py

+6
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,12 @@ def sequencer_webmaker_argparser():
447447
parser = ArgumentParser(
448448
description="Script to make an xhtml from LSTOSA sequencer output", parents=[common_parser]
449449
)
450+
parser.add_argument(
451+
"--no-gainsel",
452+
action="store_true",
453+
default=False,
454+
help="Do not check if the gain selection finished correctly (default False)",
455+
)
450456
options.tel_id = "LST1"
451457
options.prod_id = get_prod_id()
452458

0 commit comments

Comments
 (0)