NamedValueAbstractSet¶
- class lsst.daf.butler.NamedValueAbstractSet¶
- Bases: - Set[- K_co]- Custom sets with named elements. - An abstract base class for custom sets whose elements are objects with a - str- nameattribute, allowing some dict-like operations and views to be supported.- Attributes Summary - Return set of names associated with the keys, in the same order. - Methods Summary - Return a mapping view with names as keys. - get()- Return the element with the given name. - Attributes Documentation - Methods Documentation - abstract asMapping() Mapping[str, K_co]¶
- Return a mapping view with names as keys. - Returns:
- dictMapping
- A dictionary-like view with - values() == self.
 
- dict
 
 - get(key: object) K_co | None¶
- get(key: object, default: V) K_co | V
- Return the element with the given name. - Parameters:
- keytyping.Any
- The name of the element to be requested. 
- defaulttyping.Any, optional
- The value returned if no such element is present. 
 
- key
- Returns:
- resulttyping.Any
- The value of the element. 
 
- result