wrap¶
- lsst.pex.config.wrap(ctrl)¶
Add fields from a C++ control class to a
lsst.pex.config.Configclass.- Parameters:
- ctrlobject
The C++ control class.
See also
makeConfigClassMake a config class.
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