verify_to_sasquatch.py

Upload Measurement datasets from a Butler repository to Sasquatch.

This script handles metric values persisted directly using lsst.verify tooling. It is neither necessary nor useful for MetricMeasurementBundles created using analysis_tools tooling, and is provided solely for backwards compatibility with the older system.

usage: verify_to_sasquatch.py [-h] --dataset DATASET [--test] [--where WHERE]
                              [--date-created DATE_CREATED] [--extra EXTRA]
                              [--namespace NAMESPACE] [--url BASE_URL]
                              [--token TOKEN]
                              repo collections [collections ...]

positional arguments

repo

The Butler repository from which to upload metric values.

collections

The collection(s) in which to search for metric values. These can be specified in any notation recognized by Middleware.

options

-h, --help

show this help message and exit

--dataset <dataset>

The dataset on which the metrics were measured.

--test

Run this command while uploading to the lsst.debug test namespace. Any –namespace argument is ignored.

--where <where>

Butler query to select metric values for upload (default: all values).

--date-created <date_created>

ISO8601 formatted datetime in UTC for the Measurement creation date, e.g. 2021-06-30T22:28:25Z. If not provided, the run time or current time is used.

--extra

Extra field (in the form key=value) to be added to any records uploaded to Sasquatch. See SasquatchDispatcher.dispatch and .dispatchRef for more details. The –extra argument can be passed multiple times.

Sasquatch API arguments

--namespace <namespace>

The Sasquatch namespace to which to upload the metric values (default: lsst.dm)

--url <base_url>

Root URL of Sasquatch proxy server (default: https://usdf-rsp-dev.slac.stanford.edu/sasquatch-rest-proxy/).

--token <token>

Authentication token for the proxy server.