|
| __init__ (self, config, field) |
|
| apply (self, *args, **kwargs) |
|
| apply_with (self, selection, *args, **kwargs) |
|
| __setattr__ (self, attr, value) |
|
| types (self) |
|
| __contains__ (self, k) |
|
| __len__ (self) |
|
| __iter__ (self) |
|
| __getitem__ (self, k, at=None, label="default") |
|
| __setitem__ (self, k, value, at=None, label="assignment") |
|
| freeze (self) |
|
| __reduce__ (self) |
|
| keys (self) |
|
| values (self) |
|
| items (self) |
|
| __new__ (cls, *args, **kw) |
|
| setDefaults (self) |
|
| update (self, **kw) |
|
| load (self, filename, root="config") |
|
| loadFromStream (self, stream, root="config", filename=None, extraLocals=None) |
|
| loadFromString (self, code, root="config", filename=None, extraLocals=None) |
|
| save (self, filename, root="config") |
|
| saveToString (self, skipImports=False) |
|
| saveToStream (self, outfile, root="config", skipImports=False) |
|
| toDict (self) |
|
| names (self) |
|
| validate (self) |
|
| formatHistory (self, name, **kwargs) |
|
| __delattr__ (self, attr, at=None, label="deletion") |
|
| __eq__ (self, other) |
|
| __ne__ (self, other) |
|
| __str__ (self) |
|
| __repr__ (self) |
|
| compare (self, other, shortcut=True, rtol=1e-8, atol=1e-8, output=None) |
|
| __init_subclass__ (cls, **kwargs) |
|
Dictionary of instantiated configs, used to populate a `RegistryField`.
Parameters
----------
config : `lsst.pex.config.Config`
Configuration instance.
field : `RegistryField`
Configuration field.
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.