Beispiel #1
0
def get_argparser():
    parser = argparse.ArgumentParser(description="ARTIQ master")

    simple_network_args(parser, [
        ("notify", "notifications", 3250),
        ("control", "control", 3251),
        ("logging", "remote logging", 1066),
        ("broadcast", "broadcasts", 1067)
    ])

    group = parser.add_argument_group("databases")
    group.add_argument("--device-db", default="device_db.pyon",
                       help="device database file (default: '%(default)s')")
    group.add_argument("--dataset-db", default="dataset_db.pyon",
                       help="dataset file (default: '%(default)s')")

    group = parser.add_argument_group("repository")
    group.add_argument(
        "-g", "--git", default=False, action="store_true",
        help="use the Git repository backend")
    group.add_argument(
        "-r", "--repository", default="repository",
        help="path to the repository (default: '%(default)s')")

    log_args(parser)

    return parser
Beispiel #2
0
def get_argparser():
    parser = argparse.ArgumentParser(description="ARTIQ master")

    simple_network_args(parser, [
        ("notify", "notifications", 3250),
        ("control", "control", 3251),
        ("logging", "remote logging", 1066)
    ])

    group = parser.add_argument_group("databases")
    group.add_argument("--device-db", default="device_db.pyon",
                       help="device database file (default: '%(default)s')")
    group.add_argument("--dataset-db", default="dataset_db.pyon",
                       help="dataset file (default: '%(default)s')")

    group = parser.add_argument_group("repository")
    group.add_argument(
        "-g", "--git", default=False, action="store_true",
        help="use the Git repository backend")
    group.add_argument(
        "-r", "--repository", default="repository",
        help="path to the repository (default: '%(default)s')")

    log_args(parser)

    return parser
Beispiel #3
0
def get_argparser():
    parser = argparse.ArgumentParser(description="ARTIQ master")

    group = parser.add_argument_group("network")
    group.add_argument("--bind", default="::1", help="hostname or IP address to bind to")
    group.add_argument(
        "--port-notify", default=3250, type=int, help="TCP port to listen to for notifications (default: %(default)d)"
    )
    group.add_argument(
        "--port-control", default=3251, type=int, help="TCP port to listen to for control (default: %(default)d)"
    )
    group.add_argument(
        "--port-logging", default=1066, type=int, help="TCP port to listen to for remote logging (default: %(default)d)"
    )

    group = parser.add_argument_group("databases")
    group.add_argument("--device-db", default="device_db.pyon", help="device database file (default: '%(default)s')")
    group.add_argument("--dataset-db", default="dataset_db.pyon", help="dataset file (default: '%(default)s')")

    group = parser.add_argument_group("repository")
    group.add_argument("-g", "--git", default=False, action="store_true", help="use the Git repository backend")
    group.add_argument(
        "-r", "--repository", default="repository", help="path to the repository (default: '%(default)s')"
    )

    log_args(parser)

    return parser
Beispiel #4
0
def get_argparser():
    parser = argparse.ArgumentParser(description="ARTIQ master")

    simple_network_args(parser, [
        ("notify", "notifications", 3250),
        ("control", "control", 3251),
        ("logging", "remote logging", 1066),
        ("broadcast", "broadcasts", 1067)
    ])

    group = parser.add_argument_group("databases")
    group.add_argument("--device-db", default="device_db.py",
                       help="device database file (default: '%(default)s')")
    group.add_argument("--dataset-db", default="dataset_db.pyon",
                       help="dataset file (default: '%(default)s')")

    group = parser.add_argument_group("repository")
    group.add_argument(
        "-g", "--git", default=False, action="store_true",
        help="use the Git repository backend")
    group.add_argument(
        "-r", "--repository", default="repository",
        help="path to the repository (default: '%(default)s')")

    log_args(parser)

    parser.add_argument("--name",
        help="friendly name, displayed in dashboards "
             "to identify master instead of server address")

    return parser
Beispiel #5
0
def get_argparser():
    parser = argparse.ArgumentParser(description="ARTIQ master")

    group = parser.add_argument_group("network")
    group.add_argument("--bind",
                       default="::1",
                       help="hostname or IP address to bind to")
    group.add_argument(
        "--port-notify",
        default=3250,
        type=int,
        help="TCP port to listen to for notifications (default: %(default)d)")
    group.add_argument(
        "--port-control",
        default=3251,
        type=int,
        help="TCP port to listen to for control (default: %(default)d)")
    group.add_argument(
        "--port-logging",
        default=1066,
        type=int,
        help="TCP port to listen to for remote logging (default: %(default)d)")

    group = parser.add_argument_group("databases")
    group.add_argument("--device-db",
                       default="device_db.pyon",
                       help="device database file (default: '%(default)s')")
    group.add_argument("--dataset-db",
                       default="dataset_db.pyon",
                       help="dataset file (default: '%(default)s')")

    group = parser.add_argument_group("repository")
    group.add_argument("-g",
                       "--git",
                       default=False,
                       action="store_true",
                       help="use the Git repository backend")
    group.add_argument("-r",
                       "--repository",
                       default="repository",
                       help="path to the repository (default: '%(default)s')")

    log_args(parser)

    return parser
Beispiel #6
0
def get_argparser():
    parser = argparse.ArgumentParser(description="ARTIQ master")
    parser.add_argument("--version",
                        action="version",
                        version="ARTIQ v{}".format(artiq_version),
                        help="print the ARTIQ version number")

    common_args.simple_network_args(parser,
                                    [("notify", "notifications", 3250),
                                     ("control", "control", 3251),
                                     ("logging", "remote logging", 1066),
                                     ("broadcast", "broadcasts", 1067)])

    group = parser.add_argument_group("databases")
    group.add_argument("--device-db",
                       default="device_db.py",
                       help="device database file (default: '%(default)s')")
    group.add_argument("--dataset-db",
                       default="dataset_db.pyon",
                       help="dataset file (default: '%(default)s')")

    group = parser.add_argument_group("repository")
    group.add_argument("-g",
                       "--git",
                       default=False,
                       action="store_true",
                       help="use the Git repository backend")
    group.add_argument("-r",
                       "--repository",
                       default="repository",
                       help="path to the repository (default: '%(default)s')")
    group.add_argument(
        "--experiment-subdir",
        default="",
        help=("path to the experiment folder from the repository root "
              "(default: '%(default)s')"))

    log_args(parser)

    parser.add_argument("--name",
                        help="friendly name, displayed in dashboards "
                        "to identify master instead of server address")

    return parser