Convert a configuration into a `lsst.daf.base.PropertySet`.
Parameters
----------
config : `lsst.pex.config.Config`
Configuration instance.
Returns
-------
propertySet : `lsst.daf.base.PropertySet`
A `~lsst.daf.base.PropertySet` that is equivalent to the ``config``
instance. If ``config`` is `None` then this return value is also
`None`.
See also
--------
lsst.daf.base.PropertySet
Definition at line 36 of file convert.py.
37 """Convert a configuration into a `lsst.daf.base.PropertySet`.
41 config : `lsst.pex.config.Config`
42 Configuration instance.
46 propertySet : `lsst.daf.base.PropertySet`
47 A `~lsst.daf.base.PropertySet` that is equivalent to the ``config``
48 instance. If ``config`` is `None` then this return value is also
53 lsst.daf.base.PropertySet
56 raise RuntimeError(
"lsst.daf.base is not available")
59 for k, v
in dict_.items():
60 name = prefix +
"." + k
if prefix
is not None else k
61 if isinstance(v, dict):
66 if config
is not None:
68 _helper(ps,
None, config.toDict())