23 __all__ = (
'makePropertySet',
'makePolicy')
30 """Convert a configuration into a `lsst.daf.base.PropertySet`. 34 config : `lsst.pex.config.Config` 35 Configuration instance. 39 propertySet : `lsst.daf.base.PropertySet` 40 A `~lsst.daf.base.PropertySet` that is equivalent to the ``config`` 41 instance. If ``config`` is `None` then this return value is also 47 lsst.daf.base.PropertySet 50 for k, v
in dict_.items():
51 name = prefix +
"." + k
if prefix
is not None else k
52 if isinstance(v, dict):
57 if config
is not None:
59 _helper(ps,
None, config.toDict())
66 """Convert a configuration into a `lsst.pex.policy.Policy`. 70 config : `lsst.pex.config.Config` 71 Configuration instance. 75 policy : `lsst.pex.policy.Policy` 76 A `~lsst.pex.policy.Policy` that is equivalent to the ``config`` 77 instance. If ``config`` is `None` then return value is also `None`. 82 lsst.pex.policy.Policy 86 for k, v
in dict_.items():
87 if isinstance(v, dict):
89 elif isinstance(v, list):
def makePropertySet(config)
a container for holding hierarchical configuration data in memory.
PersistenceHelper _helper
Class for storing generic metadata.