wrap¶
-
lsst.pex.config.wrap(ctrl)¶ Decorator that adds fields from a C++ control class to a
lsst.pex.config.Configclass.Parameters: - ctrl : object
The C++ control class.
See also
Notes
See
makeConfigClassfor more information. Thiswrapdecorator is equivalent to callingmakeConfigClasswith the decorated class as theclsargument.Examples
Use
wraplike this:@wrap(MyControlClass) class MyConfigClass(Config): pass