toNameSet

lsst.daf.butler.toNameSet(container)

Transform an iterable of DimensionElement or names thereof into a DimensionNameSet.

Also accepts objects with a .names attribute that are not themselves iterable, such as DimensionNameSet itself.