CollectionType¶
- class lsst.daf.butler.CollectionType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
- Bases: - IntEnum- Enumeration used to label different types of collections. - Attributes Summary - A - CALIBRATIONcollection operates like a- TAGGEDcollection, but also associates each dataset with a validity range as well.- A - CHAINEDcollection is simply an ordered list of other collections to be searched.- A - RUNcollection (also just called a 'run') is the initial collection a dataset is inserted into and the only one it can never be removed from.- Datasets can be associated with and removed from - TAGGEDcollections arbitrarily.- Methods Summary - all()- Return a - frozensetcontaining all members.- from_name(name)- Return the - CollectionTypegiven its name.- from_names(names)- Return a - frozensetcontaining the- CollectionTypeinstances corresponding to the names.- Attributes Documentation - CALIBRATION = 4¶
- A - CALIBRATIONcollection operates like a- TAGGEDcollection, but also associates each dataset with a validity range as well. Queries against calibration collections must include a timestamp as an input.- It is difficult (perhaps impossible) to enforce a constraint that there be one dataset with a particular dataset type and data ID at any particular timestamp in the database, so higher-level tools that populate calibration collections are expected to maintain that invariant instead. 
 - CHAINED = 3¶
- A - CHAINEDcollection is simply an ordered list of other collections to be searched. These may include other- CHAINEDcollections.
 - RUN = 1¶
- A - RUNcollection (also just called a ‘run’) is the initial collection a dataset is inserted into and the only one it can never be removed from.- Within a particular run, there may only be one dataset with a particular dataset type and data ID. 
 - TAGGED = 2¶
- Datasets can be associated with and removed from - TAGGEDcollections arbitrarily.- Within a particular tagged collection, there may only be one dataset with a particular dataset type and data ID. 
 - Methods Documentation - classmethod all() frozenset[lsst.daf.butler._collection_type.CollectionType]¶
- Return a - frozensetcontaining all members.
 - classmethod from_name(name: str) CollectionType¶
- Return the - CollectionTypegiven its name.- Parameters:
- namestr
- Name of the collection type. Case insensitive. 
 
- name
- Returns:
- collection_typeCollectionType
- The matching collection type. 
 
- collection_type
- Raises:
- KeyError
- Raised if the name does not match a collection type. 
 
 
 - classmethod from_names(names: Iterable[str] | None) frozenset[lsst.daf.butler._collection_type.CollectionType]¶
- Return a - frozensetcontaining the- CollectionTypeinstances corresponding to the names.- Parameters:
- Returns:
- typesfrozensetofCollectionType
- The matching types. 
 
- types
- Raises:
- KeyError
- Raised if the name does not correspond to a collection type.