NameMappingSetView

class lsst.daf.butler.NameMappingSetView(mapping: Mapping[str, K_co])

Bases: lsst.daf.butler.NamedValueAbstractSet

A lightweight implementation of NamedValueAbstractSet backed by a mapping from name to named object.

Parameters:
mapping : Mapping [ str, object ]

Mapping this object will provide a view of.

Attributes Summary

names The set of names associated with the keys, in the same order (AbstractSet [ str ]).

Methods Summary

asMapping() Return a mapping view with names as keys.
get(key, K_co], default) Return the element with the given name, or default if no such element is present.
isdisjoint(other) Return True if two sets have a null intersection.

Attributes Documentation

names

The set of names associated with the keys, in the same order (AbstractSet [ str ]).

Methods Documentation

asMapping() → Mapping[str, K_co]

Return a mapping view with names as keys.

Returns:
dict : Mapping

A dictionary-like view with values() == self.

get(key: Union[str, K_co], default: Optional[Any] = None) → Any

Return the element with the given name, or default if no such element is present.

isdisjoint(other)

Return True if two sets have a null intersection.