DatasetRefURIs¶
- class lsst.daf.butler.datastore.DatasetRefURIs(primaryURI: ResourcePath | None = None, componentURIs: dict[str, ResourcePath] | None = None)¶
Bases:
SequenceRepresents the primary and component ResourcePath(s) associated with a DatasetRef.
This is used in places where its members used to be represented as a tuple
(primaryURI, componentURIs). To maintain backward compatibility this inherits from Sequence and so instances can be treated as a two-item tuple.- Parameters:
- primaryURI
lsst.resources.ResourcePathorNone, optional The URI to the primary artifact associated with this dataset. If the dataset was disassembled within the datastore this may be
None.- componentURIs
dict[str,ResourcePath] orNone The URIs to any components associated with the dataset artifact indexed by component name. This can be empty if there are no components.
- primaryURI
Methods Summary
count(value)index(value, [start, [stop]])Raises ValueError if the value is not present.
Methods Documentation
- count(value) integer -- return number of occurrences of value¶
- index(value[, start[, stop]]) integer -- return first index of value.¶
Raises ValueError if the value is not present.
Supporting start and stop arguments is optional, but recommended.