ConfigurableInstance¶
-
class
lsst.pex.config.ConfigurableInstance(config, field, at=None, label='default')¶ Bases:
objectA retargetable configuration in a
ConfigurableFieldthat proxies aConfig.Notes
ConfigurableInstanceimplements__getattr__and__setattr__methods that forward to theConfigit holds.ConfigurableInstanceadds aretargetmethod.The actual
Configinstance is accessed using thevalueproperty (e.g. to get its documentation). The associated configurable object (usually aTask) is accessed using thetargetproperty.Attributes Summary
ConfigClassThe configuration class (read-only) targetThe targeted configurable (read-only). valueThe ConfigClassinstance (lsst.pex.config.ConfigClass-type, read-only).Methods Summary
apply(*args, **kw)Call the configurable. retarget(target[, ConfigClass, at, label])Target a new configurable and ConfigClass Attributes Documentation
-
ConfigClass¶ The configuration class (read-only)
-
target¶ The targeted configurable (read-only).
-
value¶ The
ConfigClassinstance (lsst.pex.config.ConfigClass-type, read-only).
Methods Documentation
-
apply(*args, **kw)¶ Call the configurable.
Notes
In addition to the user-provided positional and keyword arguments, the configurable is also provided a keyword argument
configwith the value ofConfigurableInstance.value.
-
retarget(target, ConfigClass=None, at=None, label='retarget')¶ Target a new configurable and ConfigClass
-