DatasetIdGenEnum

class lsst.daf.butler.DatasetIdGenEnum

Bases: enum.Enum

This enum is used to specify dataset ID generation options for insert() method.

Attributes Summary

DATAID_TYPE In this mode ID is computed deterministically from a combination of dataset type and dataId.
DATAID_TYPE_RUN In this mode ID is computed deterministically from a combination of dataset type, dataId, and run collection name.
UNIQUE Unique mode generates unique ID for each inserted dataset, e.g.

Attributes Documentation

DATAID_TYPE = 1

In this mode ID is computed deterministically from a combination of dataset type and dataId.

DATAID_TYPE_RUN = 2

In this mode ID is computed deterministically from a combination of dataset type, dataId, and run collection name.

UNIQUE = 0

Unique mode generates unique ID for each inserted dataset, e.g. auto-generated by database or random UUID.