LSST Applications 24.1.6,g063fba187b+56b85ce14a,g0f08755f38+df8a265115,g12f32b3c4e+891a09f10d,g1524ad2192+7a5d7b3fbd,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g28da252d5a+07cb1400be,g2bbee38e9b+ae03bbfc84,g2bc492864f+ae03bbfc84,g3156d2b45e+6e55a43351,g347aa1857d+ae03bbfc84,g35bb328faa+a8ce1bb630,g3a166c0a6a+ae03bbfc84,g3e281a1b8c+c5dd892a6c,g414038480c+6b9177ef31,g41af890bb2+8f257c4c0b,g781aacb6e4+a8ce1bb630,g7af13505b9+7137b3b17d,g80478fca09+6df6903293,g82479be7b0+091ce1d07f,g858d7b2824+df8a265115,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,g9726552aa6+414189b318,ga5288a1d22+4a2bca08d7,gacef1a1666+c9a8ff65f4,gb58c049af0+d64f4d3760,gbcfae0f0a0+de1d42d831,gc28159a63d+ae03bbfc84,gcf0d15dbbd+72117bf34e,gda6a2b7d83+72117bf34e,gdaeeff99f8+1711a396fd,ge500cccec5+c8c9c9af63,ge79ae78c31+ae03bbfc84,gf0baf85859+c1f95f4921,gfa517265be+df8a265115,gfa999e8aa5+17cd334064,gfb92a5be7c+df8a265115
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, config, field) | |
types (self) | |
__contains__ (self, k) | |
__len__ (self) | |
__iter__ (self) | |
__getitem__ (self, k, at=None, label="default") | |
__setitem__ (self, k, value, at=None, label="assignment") | |
__setattr__ (self, attr, value, at=None, label="assignment") | |
freeze (self) | |
__reduce__ (self) | |
Public Attributes | |
types | |
Protected Member Functions | |
_setSelection (self, value, at=None, label="assignment") | |
_getNames (self) | |
_setNames (self, value) | |
_delNames (self) | |
_getName (self) | |
_setName (self, value) | |
_delName (self) | |
_getActive (self) | |
_rename (self, fullname) | |
Protected Attributes | |
_dict | |
_selection | |
_config | |
_field | |
_history | |
_typemap | |
Properties | |
names = property(_getNames, _setNames, _delNames) | |
name = property(_getName, _setName, _delName) | |
active = property(_getActive) | |
Dictionary of instantiated configs, used to populate a `~lsst.pex.config.ConfigChoiceField`. Parameters ---------- config : `lsst.pex.config.Config` A configuration instance. field : `lsst.pex.config.Field`-type A configuration field. Note that the `lsst.pex.config.Field.fieldmap` attribute must provide key-based access to configuration classes, (that is, ``typemap[name]``).
Definition at line 166 of file configChoiceField.py.
lsst.pex.config.configChoiceField.ConfigInstanceDict.__init__ | ( | self, | |
config, | |||
field ) |
Reimplemented from lsst.pex.config.config.ConfigMeta.
Reimplemented in lsst.pex.config.registry.RegistryInstanceDict, lsst.pex.config.registry.RegistryField, and lsst.pex.config.configChoiceField.ConfigChoiceField.
Definition at line 180 of file configChoiceField.py.
lsst.pex.config.configChoiceField.ConfigInstanceDict.__contains__ | ( | self, | |
name ) |
Return `True` if the specified field exists in this config. Parameters ---------- name : `str` Field name to test for. Returns ------- in : `bool` `True` if the specified field exists in the config.
Reimplemented from lsst.pex.config.config.Config.
Definition at line 194 of file configChoiceField.py.
lsst.pex.config.configChoiceField.ConfigInstanceDict.__getitem__ | ( | self, | |
k, | |||
at = None, | |||
label = "default" ) |
Definition at line 290 of file configChoiceField.py.
lsst.pex.config.configChoiceField.ConfigInstanceDict.__iter__ | ( | self | ) |
Iterate over fields.
Reimplemented from lsst.pex.config.config.Config.
Definition at line 200 of file configChoiceField.py.
lsst.pex.config.configChoiceField.ConfigInstanceDict.__len__ | ( | self | ) |
Definition at line 197 of file configChoiceField.py.
lsst.pex.config.configChoiceField.ConfigInstanceDict.__reduce__ | ( | self | ) |
Reduction for pickling (function with arguments to reproduce). We need to condense and reconstitute the `~lsst.pex.config.Config`, since it may contain lambdas (as the ``check`` elements) that cannot be pickled.
Reimplemented from lsst.pex.config.config.Config.
Definition at line 373 of file configChoiceField.py.
lsst.pex.config.configChoiceField.ConfigInstanceDict.__setattr__ | ( | self, | |
attr, | |||
value, | |||
at = None, | |||
label = "assignment" ) |
Set an attribute (such as a field's value). Notes ----- Unlike normal Python objects, `~lsst.pex.config.Config` objects are locked such that no additional attributes nor properties may be added to them dynamically. Although this is not the standard Python behavior, it helps to protect users from accidentally mispelling a field name, or trying to set a non-existent field.
Reimplemented from lsst.pex.config.config.Config.
Reimplemented in lsst.pex.config.registry.RegistryInstanceDict.
Definition at line 341 of file configChoiceField.py.
lsst.pex.config.configChoiceField.ConfigInstanceDict.__setitem__ | ( | self, | |
k, | |||
value, | |||
at = None, | |||
label = "assignment" ) |
Definition at line 307 of file configChoiceField.py.
|
protected |
Definition at line 255 of file configChoiceField.py.
|
protected |
Definition at line 234 of file configChoiceField.py.
|
protected |
Definition at line 274 of file configChoiceField.py.
|
protected |
Definition at line 241 of file configChoiceField.py.
|
protected |
Definition at line 220 of file configChoiceField.py.
|
protected |
Rename this config object in its parent `~lsst.pex.config.Config`. Parameters ---------- name : `str` New name for this config in its parent `~lsst.pex.config.Config`. Notes ----- This method uses the `~lsst.pex.config.Field.rename` method of individual `lsst.pex.config.Field` instances. `lsst.pex.config.Field` subclasses may need to implement a ``rename`` method for *this* method to work. See Also -------- lsst.pex.config.Field.rename
Reimplemented from lsst.pex.config.config.Config.
Definition at line 337 of file configChoiceField.py.
|
protected |
Definition at line 248 of file configChoiceField.py.
|
protected |
Definition at line 227 of file configChoiceField.py.
|
protected |
Definition at line 203 of file configChoiceField.py.
lsst.pex.config.configChoiceField.ConfigInstanceDict.freeze | ( | self | ) |
Freeze the config. Invoking this freeze method will create a local copy of the field attribute's typemap. This decouples this instance dict from the underlying objects type map ensuring that and subsequent changes to the typemap will not be reflected in this instance (i.e imports adding additional registry entries).
Reimplemented from lsst.pex.config.config.Config.
Reimplemented in lsst.pex.config.configChoiceField.ConfigChoiceField.
Definition at line 361 of file configChoiceField.py.
lsst.pex.config.configChoiceField.ConfigInstanceDict.types | ( | self | ) |
Definition at line 191 of file configChoiceField.py.
|
protected |
Definition at line 184 of file configChoiceField.py.
|
protected |
Definition at line 182 of file configChoiceField.py.
|
protected |
Definition at line 185 of file configChoiceField.py.
|
protected |
Definition at line 186 of file configChoiceField.py.
|
protected |
Definition at line 183 of file configChoiceField.py.
|
protected |
Definition at line 188 of file configChoiceField.py.
lsst.pex.config.configChoiceField.ConfigInstanceDict.types |
Definition at line 198 of file configChoiceField.py.
|
static |
Definition at line 283 of file configChoiceField.py.
|
static |
Definition at line 268 of file configChoiceField.py.
|
static |
Definition at line 262 of file configChoiceField.py.