LSSTApplications
18.1.0
LSSTDataManagementBasePackage
|
Public Member Functions | |
def | __init__ (self, config, field, at=None, label="default") |
def | apply (self, args, kw) |
def | retarget (self, target, ConfigClass=None, at=None, label="retarget") |
def | __getattr__ (self, name) |
def | __setattr__ (self, name, value, at=None, label="assignment") |
def | __delattr__ (self, name, at=None, label="delete") |
Properties | |
target = property(lambda x: x._target) | |
ConfigClass = property(lambda x: x._ConfigClass) | |
value = property(lambda x: x._value) | |
A retargetable configuration in a `ConfigurableField` that proxies a `~lsst.pex.config.Config`. Notes ----- ``ConfigurableInstance`` implements ``__getattr__`` and ``__setattr__`` methods that forward to the `~lsst.pex.config.Config` it holds. ``ConfigurableInstance`` adds a `retarget` method. The actual `~lsst.pex.config.Config` instance is accessed using the ``value`` property (e.g. to get its documentation). The associated configurable object (usually a `~lsst.pipe.base.Task`) is accessed using the ``target`` property.
Definition at line 31 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableInstance.__init__ | ( | self, | |
config, | |||
field, | |||
at = None , |
|||
label = "default" |
|||
) |
Definition at line 64 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableInstance.__delattr__ | ( | self, | |
name, | |||
at = None , |
|||
label = "delete" |
|||
) |
Pretend to be an isntance of ConfigClass. Attributes defiend by ConfigurableInstance will shadow those defined in ConfigClass
Definition at line 145 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableInstance.__getattr__ | ( | self, | |
name | |||
) |
Definition at line 126 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableInstance.__setattr__ | ( | self, | |
name, | |||
value, | |||
at = None , |
|||
label = "assignment" |
|||
) |
Pretend to be an instance of ConfigClass. Attributes defined by ConfigurableInstance will shadow those defined in ConfigClass
Definition at line 129 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableInstance.apply | ( | self, | |
args, | |||
kw | |||
) |
Call the configurable. Notes ----- In addition to the user-provided positional and keyword arguments, the configurable is also provided a keyword argument ``config`` with the value of `ConfigurableInstance.value`.
Definition at line 93 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableInstance.retarget | ( | self, | |
target, | |||
ConfigClass = None , |
|||
at = None , |
|||
label = "retarget" |
|||
) |
|
static |
Definition at line 84 of file configurableField.py.
|
static |
Definition at line 80 of file configurableField.py.
|
static |
Definition at line 88 of file configurableField.py.