diff --git a/src/osa/scripts/sequencer_webmaker.py b/src/osa/scripts/sequencer_webmaker.py index 0f2d8938..e41958aa 100644 --- a/src/osa/scripts/sequencer_webmaker.py +++ b/src/osa/scripts/sequencer_webmaker.py @@ -55,7 +55,7 @@ def html_content(body: str, date: str) -> str: ) -def get_sequencer_output(date: str, config: str, test=False) -> list: +def get_sequencer_output(date: str, config: str, test=False, no_gainsel=False) -> list: """Call sequencer to get table with the sequencer status report. Parameters @@ -82,6 +82,9 @@ def get_sequencer_output(date: str, config: str, test=False) -> list: options.tel_id, ] + if no_gainsel: + commandargs.insert(1, "--no-gainsel") + if test: commandargs.insert(-1, "-t") @@ -144,7 +147,7 @@ def main(): sys.exit(1) # Get the table with the sequencer status report: - lines = get_sequencer_output(date, args.config, args.test) + lines = get_sequencer_output(date, args.config, test=args.test, no_gainsel=args.no_gainsel) # Build the html sequencer table that will be place in the body of the HTML file matrix = lines_to_matrix(lines) diff --git a/src/osa/utils/cliopts.py b/src/osa/utils/cliopts.py index bf5fd54c..95bd41a7 100644 --- a/src/osa/utils/cliopts.py +++ b/src/osa/utils/cliopts.py @@ -447,6 +447,12 @@ def sequencer_webmaker_argparser(): parser = ArgumentParser( description="Script to make an xhtml from LSTOSA sequencer output", parents=[common_parser] ) + parser.add_argument( + "--no-gainsel", + action="store_true", + default=False, + help="Do not check if the gain selection finished correctly (default False)", + ) options.tel_id = "LST1" options.prod_id = get_prod_id()