Skip to content
Snippets Groups Projects
Commit 48cb8e20 authored by Jan David Mol's avatar Jan David Mol
Browse files

allow station names in uppercase

parent 15f3c80b
No related branches found
Tags v0.0.23
No related merge requests found
Pipeline #89908 passed
Pipeline: Stingray

#89909

    ......@@ -23,6 +23,10 @@ logger.setLevel(logging.DEBUG)
    logger.addHandler(setup_logging_handler())
    def _lower_str(s: str):
    return s.lower()
    def _datetime_fromisoformat_with_tz(
    datetime_str: str, default_tz: timezone = timezone.utc
    ) -> datetime:
    ......@@ -39,16 +43,16 @@ def _create_parser():
    parser = argparse.ArgumentParser(
    description="Aggregates statistics packets from an S3 bucket into an HDF5 file."
    )
    parser.add_argument("station", type=str, help="the name of the station")
    parser.add_argument("station", type=_lower_str, help="the name of the station")
    parser.add_argument(
    "antennafield",
    type=str,
    type=_lower_str,
    choices=["lba", "hba", "hba0", "hba1"],
    help="the name of the antenna field",
    )
    parser.add_argument(
    "type",
    type=str,
    type=_lower_str,
    choices=["xst", "sst", "bst"],
    help="the type of the statistics",
    )
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment