|
def | __init__ (self, config, field) |
|
def | apply (self, *args, **kwargs) |
|
def | apply_with (self, selection, *args, **kwargs) |
|
def | __setattr__ (self, attr, value) |
|
def | __init__ (self, config, field) |
|
def | types (self) |
|
def | __contains__ (self, k) |
|
def | __len__ (self) |
|
def | __iter__ (self) |
|
def | __getitem__ (self, k, at=None, label="default") |
|
def | __setitem__ (self, k, value, at=None, label="assignment") |
|
def | __setattr__ (self, attr, value, at=None, label="assignment") |
|
def | freeze (self) |
|
def | __reduce__ (self) |
|
Dictionary of instantiated configs, used to populate a `RegistryField`.
Parameters
----------
config : `lsst.pex.config.Config`
Configuration instance.
field : `RegistryField`
Configuration field.
def lsst.pex.config.registry.RegistryInstanceDict.apply_with |
( |
|
self, |
|
|
|
selection, |
|
|
* |
args, |
|
|
** |
kwargs |
|
) |
| |
Call named target(s) with the corresponding config as a keyword
arg.
Parameters
----------
selection : `str` or `~collections.abc.Iterable` [ `str` ]
Name or names of targets, depending on whether ``multi=True``.
*args, **kwargs
Additional arguments will be passed on to the configurable
target(s).
Returns
-------
result
If this is a single-selection field, the return value from calling
the target. If this is a multi-selection field, a list thereof.
Notes
-----
This method ignores the current selection in the ``name`` or ``names``
attribute, which is usually not what you want. This method is most
useful in ``on_none`` callbacks provided at field construction, which
allow a context-dependent default to be used when no selection is
configured.