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
Notes
See
makeConfigClass
for more information. Thiswrap
decorator is equivalent to callingmakeConfigClass
with the decorated class as thecls
argument.Examples
Use
wrap
like this:@wrap(MyControlClass) class MyConfigClass(Config): pass