From d1ca6e4e8fc654fd6f1ef22d1acf05be71a57b02 Mon Sep 17 00:00:00 2001 From: Edoardo-Pedicillo Date: Mon, 4 Nov 2024 16:07:14 +0400 Subject: [PATCH] docs: add deprecation message for qq auto --- src/qibocal/cli/_base.py | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/src/qibocal/cli/_base.py b/src/qibocal/cli/_base.py index f89f747ad..cf4aa2838 100644 --- a/src/qibocal/cli/_base.py +++ b/src/qibocal/cli/_base.py @@ -236,3 +236,48 @@ def upload(path, tag, author): ) def compare(report_1_path, report_2_path, folder, force): compare_reports(folder, report_1_path, report_2_path, force) + + +@command.command(context_settings=CONTEXT_SETTINGS, deprecated=True) +@click.argument( + "runcard", metavar="RUNCARD", type=click.Path(exists=True, path_type=pathlib.Path) +) +@click.option( + "folder", + "-o", + type=click.Path(path_type=pathlib.Path), + help="Output folder. If not provided a standard name will generated.", +) +@click.option( + "force", + "-f", + is_flag=True, + help="Use --force option to overwrite the output folder.", +) +@click.option( + "--update/--no-update", + default=True, + help="Use --no-update option to avoid updating iteratively the platform." + "With this option the new runcard will not be produced.", +) +@click.option( + "--platform", + default=None, + help="Name of the Qibolab platform.", +) +@click.option( + "--backend", + default=None, + help="Name of the Qibo backend.,", +) +def auto(runcard, folder, force, update, platform, backend): + """Execute the qubit calibration. + + Arguments: + + - RUNCARD: runcard with declarative inputs. + """ + click.echo( + "Warning: This command is deprecated and may be removed in a future version. Please use 'qq run' instead. ", + err=True, + )