lsst.pipe.tasks  21.0.0-121-gecf9ee78+b64c36337a
Public Member Functions | Static Public Attributes | List of all members
lsst.pipe.tasks.configurableActions._configurableActionStructField.ConfigurableActionStruct Class Reference

Public Member Functions

def __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, Union[ConfigurableAction, Type[ConfigurableAction]] value, at=None, label='setattr', setHistory=False)
 
def __getattr__ (self, attr)
 
def __delattr__ (self, name)
 
Iterable[ConfigurableAction] __iter__ (self)
 
Iterable[Tuple[str, ConfigurableAction]] items (self)
 

Static Public Attributes

 update = ConfigurableActionStructUpdater()
 
 remove = ConfigurableActionStructRemover()
 

Detailed Description

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 `ConfigurableActions` with a
struct like interface, that is to say in an attribute like notation.

Attributes can be dynamically added or removed as such:

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 convenance attributes.

The first is `update`. You may assign a dict of `ConfigurableActions` 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 86 of file _configurableActionStructField.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.pipe.tasks.configurableActions._configurableActionStructField.ConfigurableActionStruct.__init__ (   self,
Config  config,
ConfigurableActionStructField  field,
Mapping[str, ConfigurableAction]  value,
Any  at,
str  label 
)

Definition at line 127 of file _configurableActionStructField.py.

Member Function Documentation

◆ __delattr__()

def lsst.pipe.tasks.configurableActions._configurableActionStructField.ConfigurableActionStruct.__delattr__ (   self,
  name 
)

Definition at line 174 of file _configurableActionStructField.py.

◆ __getattr__()

def lsst.pipe.tasks.configurableActions._configurableActionStructField.ConfigurableActionStruct.__getattr__ (   self,
  attr 
)

Definition at line 168 of file _configurableActionStructField.py.

◆ __iter__()

Iterable[ConfigurableAction] lsst.pipe.tasks.configurableActions._configurableActionStructField.ConfigurableActionStruct.__iter__ (   self)

Definition at line 180 of file _configurableActionStructField.py.

◆ __setattr__()

None lsst.pipe.tasks.configurableActions._configurableActionStructField.ConfigurableActionStruct.__setattr__ (   self,
str  attr,
Union[ConfigurableAction, Type[ConfigurableAction]]  value,
  at = None,
  label = 'setattr',
  setHistory = False 
)

Definition at line 148 of file _configurableActionStructField.py.

◆ fieldNames()

Iterable[str] lsst.pipe.tasks.configurableActions._configurableActionStructField.ConfigurableActionStruct.fieldNames (   self)

Definition at line 145 of file _configurableActionStructField.py.

◆ history()

List[tuple] lsst.pipe.tasks.configurableActions._configurableActionStructField.ConfigurableActionStruct.history (   self)

Definition at line 141 of file _configurableActionStructField.py.

◆ items()

Iterable[Tuple[str, ConfigurableAction]] lsst.pipe.tasks.configurableActions._configurableActionStructField.ConfigurableActionStruct.items (   self)

Definition at line 183 of file _configurableActionStructField.py.

Member Data Documentation

◆ remove

lsst.pipe.tasks.configurableActions._configurableActionStructField.ConfigurableActionStruct.remove = ConfigurableActionStructRemover()
static

Definition at line 125 of file _configurableActionStructField.py.

◆ update

lsst.pipe.tasks.configurableActions._configurableActionStructField.ConfigurableActionStruct.update = ConfigurableActionStructUpdater()
static

Definition at line 124 of file _configurableActionStructField.py.


The documentation for this class was generated from the following file: