wrap

lsst.pex.config.wrap(ctrl)

Decorator that adds fields from a C++ control class to a lsst.pex.config.Config class.

Parameters
ctrlobject

The C++ control class.

See also

makeConfigClass

Notes

See makeConfigClass for more information. This wrap decorator is equivalent to calling makeConfigClass with the decorated class as the cls argument.

Examples

Use wrap like this:

@wrap(MyControlClass)
class MyConfigClass(Config):
    pass