makePolicy

lsst.pex.config.makePolicy(config)

Convert a configuration into a lsst.pex.policy.Policy.

Parameters
configlsst.pex.config.Config

Configuration instance.

Returns
policylsst.pex.policy.Policy

A Policy that is equivalent to the config instance. If config is None then return value is also None.

See also

pex_policy is deprecated, prefer makePropertySet (will be removed after v19)