LSST Applications g07dc498a13+cb17356775,g1409bbee79+cb17356775,g1a7e361dbc+cb17356775,g1fd858c14a+d1a2a640a9,g33399d78f5+fe6948661d,g35bb328faa+e55fef2c71,g3bd4b5ce2c+cac9e18807,g3c79e8cd92+2359a18b76,g43bc871e57+a58ba40925,g53246c7159+e55fef2c71,g60b5630c4e+8133a3545f,g78460c75b0+8427c4cc8f,g78619a8342+55305cb8f0,g786e29fd12+307f82e6af,g8534526c7b+8e1c6b434f,g89139ef638+cb17356775,g8b49a6ea8e+8133a3545f,g8ffcb69f3d+818ab6c36e,g9125e01d80+e55fef2c71,g97b8272a79+98425f45f6,g989de1cb63+cb17356775,g9f33ca652e+4245ceb508,gaaedd4e678+cb17356775,gabe3b4be73+9c0c3c7524,gb1101e3267+3e5ef1d639,gb58c049af0+28045f66fd,gc1fe0db326+8133a3545f,gca43fec769+e55fef2c71,gcf25f946ba+fe6948661d,gd397e13551+64039f84ea,gd6cbbdb0b4+f6e5445f66,gde0f65d7ad+7eb368c542,ge278dab8ac+b4c2c8faf7,geab183fbe5+8133a3545f,gecb8035dfe+1f480bec5e,gefa07fa684+e7bc33f3ea,gf58bf46354+e55fef2c71,gfe7187db8c+e55afb4430,w.2025.03
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, Config config, ConfigurableActionStructField field, Mapping[str, ConfigurableAction] value, Any at, str label) | |
list[tuple] | history (self) |
Iterable[str] | fieldNames (self) |
None | __setattr__ (self, str attr, ActionTypeVar|type[ActionTypeVar] value, at=None, label="setattr", setHistory=False) |
Any | __getattr__ (self, attr) |
__delattr__ (self, name) | |
Iterator[ActionTypeVar] | __iter__ (self) |
Iterable[tuple[str, ActionTypeVar]] | items (self) |
bool | __bool__ (self) |
Public Attributes | |
fieldNames | |
Static Public Attributes | |
update = ConfigurableActionStructUpdater() | |
remove = ConfigurableActionStructRemover() | |
Protected Member Functions | |
Config | _config (self) |
Protected Attributes | |
_config | |
_field | |
_attrs | |
Static Protected Attributes | |
weakref | _config_ .ref |
dict | _attrs [str, ActionTypeVar] |
list | _history [tuple] |
A ConfigurableActionStruct is the storage backend class that supports the ConfigurableActionStructField. This class should not be created directly. This class allows managing a collection of `ConfigurableAction` with a struct like interface, that is to say in an attribute like notation. Parameters ---------- config : `~lsst.pex.config.Config` Config to use. field : `ConfigurableActionStructField` Field to use. value : `~collections.abc.Mapping` [`str`, `ConfigurableAction`] Value to assign. at : `list` of `~lsst.pex.config.callStack.StackFrame` or `None`, optional Stack frames to use for history recording. label : `str`, optional Label to use for history recording. Notes ----- Attributes can be dynamically added or removed as such: .. code-block:: python ConfigurableActionStructInstance.variable1 = a_configurable_action del ConfigurableActionStructInstance.variable1 Each action is then available to be individually configured as a normal `lsst.pex.config.Config` object. `ConfigurableActionStruct` supports two special convenience attributes. The first is ``update``. You may assign a dict of `ConfigurableAction` or a `ConfigurableActionStruct` to this attribute which will update the `ConfigurableActionStruct` on which the attribute is invoked such that it will be updated to contain the entries specified by the structure on the right hand side of the equals sign. The second convenience attribute is named ``remove``. You may assign an iterable of strings which correspond to attribute names on the `ConfigurableActionStruct`. All of the corresponding attributes will then be removed. If any attribute does not exist, an `AttributeError` will be raised. Any attributes in the Iterable prior to the name which raises will have been removed from the `ConfigurableActionStruct`
Definition at line 96 of file _configurableActionStructField.py.
lsst.pex.config.configurableActions._configurableActionStructField.ConfigurableActionStruct.__init__ | ( | self, | |
Config | config, | ||
ConfigurableActionStructField | field, | ||
Mapping[str, ConfigurableAction] | value, | ||
Any | at, | ||
str | label ) |
Definition at line 155 of file _configurableActionStructField.py.
bool lsst.pex.config.configurableActions._configurableActionStructField.ConfigurableActionStruct.__bool__ | ( | self | ) |
Definition at line 242 of file _configurableActionStructField.py.
lsst.pex.config.configurableActions._configurableActionStructField.ConfigurableActionStruct.__delattr__ | ( | self, | |
name ) |
Definition at line 228 of file _configurableActionStructField.py.
Any lsst.pex.config.configurableActions._configurableActionStructField.ConfigurableActionStruct.__getattr__ | ( | self, | |
attr ) |
Definition at line 220 of file _configurableActionStructField.py.
Iterator[ActionTypeVar] lsst.pex.config.configurableActions._configurableActionStructField.ConfigurableActionStruct.__iter__ | ( | self | ) |
Definition at line 234 of file _configurableActionStructField.py.
None lsst.pex.config.configurableActions._configurableActionStructField.ConfigurableActionStruct.__setattr__ | ( | self, | |
str | attr, | ||
ActionTypeVar | type[ActionTypeVar] | value, | ||
at = None, | |||
label = "setattr", | |||
setHistory = False ) |
Definition at line 190 of file _configurableActionStructField.py.
|
protected |
Definition at line 175 of file _configurableActionStructField.py.
Iterable[str] lsst.pex.config.configurableActions._configurableActionStructField.ConfigurableActionStruct.fieldNames | ( | self | ) |
Definition at line 187 of file _configurableActionStructField.py.
list[tuple] lsst.pex.config.configurableActions._configurableActionStructField.ConfigurableActionStruct.history | ( | self | ) |
Definition at line 183 of file _configurableActionStructField.py.
Iterable[tuple[str, ActionTypeVar]] lsst.pex.config.configurableActions._configurableActionStructField.ConfigurableActionStruct.items | ( | self | ) |
Definition at line 238 of file _configurableActionStructField.py.
|
staticprotected |
Definition at line 147 of file _configurableActionStructField.py.
|
protected |
Definition at line 243 of file _configurableActionStructField.py.
|
protected |
Definition at line 198 of file _configurableActionStructField.py.
|
staticprotected |
Definition at line 146 of file _configurableActionStructField.py.
|
protected |
Definition at line 200 of file _configurableActionStructField.py.
|
staticprotected |
Definition at line 149 of file _configurableActionStructField.py.
lsst.pex.config.configurableActions._configurableActionStructField.ConfigurableActionStruct.fieldNames |
Definition at line 235 of file _configurableActionStructField.py.
|
static |
Definition at line 153 of file _configurableActionStructField.py.
|
static |
Definition at line 152 of file _configurableActionStructField.py.