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, value, at, label, setHistory=True) | |
ItemTypeVar | __getitem__ (self, KeyTypeVar k) |
int | __len__ (self) |
Iterator[KeyTypeVar] | __iter__ (self) |
bool | __contains__ (self, Any k) |
None | __setitem__ (self, KeyTypeVar k, ItemTypeVar x, Any at=None, str label="setitem", bool setHistory=True) |
None | __delitem__ (self, KeyTypeVar k, Any at=None, str label="delitem", bool setHistory=True) |
__repr__ (self) | |
__str__ (self) | |
__setattr__ (self, attr, value, at=None, label="assignment") | |
__reduce__ (self) | |
Protected Member Functions | |
Config | _config (self) |
Protected Attributes | |
_field | |
_config_ | |
_dict | |
_history | |
_config | |
Properties | |
history = property(lambda x: x._history) | |
An internal mapping container. This class emulates a `dict`, but adds validation and provenance. Parameters ---------- config : `~lsst.pex.config.Config` Config to proxy. field : `~lsst.pex.config.DictField` Field to use. value : `~typing.Any` Value to store. at : `list` of `~lsst.pex.config.callStack.StackFrame` Stack frame for history recording. Will be calculated if `None`. label : `str`, optional Label to use for history recording. setHistory : `bool`, optional Whether to append to the history record.
Definition at line 53 of file dictField.py.
lsst.pex.config.dictField.Dict.__init__ | ( | self, | |
config, | |||
field, | |||
value, | |||
at, | |||
label, | |||
setHistory = True ) |
Reimplemented in lsst.pex.config.configDictField.ConfigDict, lsst.pex.config.configDictField.ConfigDictField, and lsst.pex.config.dictField.DictField.
Definition at line 74 of file dictField.py.
bool lsst.pex.config.dictField.Dict.__contains__ | ( | self, | |
Any | k ) |
Definition at line 112 of file dictField.py.
None lsst.pex.config.dictField.Dict.__delitem__ | ( | self, | |
KeyTypeVar | k, | ||
Any | at = None, | ||
str | label = "delitem", | ||
bool | setHistory = True ) |
Reimplemented in lsst.pex.config.configDictField.ConfigDict.
Definition at line 154 of file dictField.py.
ItemTypeVar lsst.pex.config.dictField.Dict.__getitem__ | ( | self, | |
KeyTypeVar | k ) |
Definition at line 103 of file dictField.py.
Iterator[KeyTypeVar] lsst.pex.config.dictField.Dict.__iter__ | ( | self | ) |
Definition at line 109 of file dictField.py.
int lsst.pex.config.dictField.Dict.__len__ | ( | self | ) |
Definition at line 106 of file dictField.py.
lsst.pex.config.dictField.Dict.__reduce__ | ( | self | ) |
Definition at line 184 of file dictField.py.
lsst.pex.config.dictField.Dict.__repr__ | ( | self | ) |
Definition at line 166 of file dictField.py.
lsst.pex.config.dictField.Dict.__setattr__ | ( | self, | |
attr, | |||
value, | |||
at = None, | |||
label = "assignment" ) |
Definition at line 172 of file dictField.py.
None lsst.pex.config.dictField.Dict.__setitem__ | ( | self, | |
KeyTypeVar | k, | ||
ItemTypeVar | x, | ||
Any | at = None, | ||
str | label = "setitem", | ||
bool | setHistory = True ) |
Reimplemented in lsst.pex.config.configDictField.ConfigDict.
Definition at line 115 of file dictField.py.
lsst.pex.config.dictField.Dict.__str__ | ( | self | ) |
Definition at line 169 of file dictField.py.
|
protected |
Definition at line 92 of file dictField.py.
|
protected |
Definition at line 87 of file dictField.py.
|
protected |
Definition at line 76 of file dictField.py.
|
protected |
Definition at line 77 of file dictField.py.
|
protected |
Definition at line 75 of file dictField.py.
|
protected |
Definition at line 78 of file dictField.py.
|
static |
Definition at line 99 of file dictField.py.