LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, config, field, value, at, label, setHistory=True) | |
validateItem (self, i, x) | |
list (self) | |
__contains__ (self, x) | |
__len__ (self) | |
None | __setitem__ (self, int i, FieldTypeVar x, Any at=None, str label="setitem", bool setHistory=True) |
None | __setitem__ (self, slice i, Iterable[FieldTypeVar] x, Any at=None, str label="setitem", bool setHistory=True) |
__setitem__ (self, i, x, at=None, label="setitem", setHistory=True) | |
FieldTypeVar | __getitem__ (self, int i) |
MutableSequence[FieldTypeVar] | __getitem__ (self, slice i) |
__getitem__ (self, i) | |
__delitem__ (self, i, at=None, label="delitem", setHistory=True) | |
__iter__ (self) | |
insert (self, i, x, at=None, label="insert", setHistory=True) | |
__repr__ (self) | |
__str__ (self) | |
__eq__ (self, other) | |
__ne__ (self, other) | |
__setattr__ (self, attr, value, at=None, label="assignment") | |
__reduce__ (self) | |
Protected Member Functions | |
Config | _config (self) |
Protected Attributes | |
_field | |
_config_ | |
_history | |
_list | |
_config | |
Properties | |
history = property(lambda x: x._history) | |
List collection used internally by `ListField`. Parameters ---------- config : `lsst.pex.config.Config` Config instance that contains the ``field``. field : `ListField` Instance of the `ListField` using this ``List``. value : sequence Sequence of values that are inserted into this ``List``. at : `list` of `~lsst.pex.config.callStack.StackFrame` The call stack (created by `lsst.pex.config.callStack.getCallStack`). label : `str` Event label for the history. setHistory : `bool`, optional Enable setting the field's history, using the value of the ``at`` parameter. Default is `True`. Raises ------ FieldValidationError Raised if an item in the ``value`` parameter does not have the appropriate type for this field or does not pass the `ListField.itemCheck` method of the ``field`` parameter.
Definition at line 49 of file listField.py.
lsst.pex.config.listField.List.__init__ | ( | self, | |
config, | |||
field, | |||
value, | |||
at, | |||
label, | |||
setHistory = True ) |
Reimplemented in lsst.pex.config.listField.ListField.
Definition at line 76 of file listField.py.
lsst.pex.config.listField.List.__contains__ | ( | self, | |
x ) |
Definition at line 138 of file listField.py.
lsst.pex.config.listField.List.__delitem__ | ( | self, | |
i, | |||
at = None, | |||
label = "delitem", | |||
setHistory = True ) |
Definition at line 188 of file listField.py.
lsst.pex.config.listField.List.__eq__ | ( | self, | |
other ) |
Definition at line 229 of file listField.py.
lsst.pex.config.listField.List.__getitem__ | ( | self, | |
i ) |
Definition at line 185 of file listField.py.
FieldTypeVar lsst.pex.config.listField.List.__getitem__ | ( | self, | |
int | i ) |
Definition at line 180 of file listField.py.
MutableSequence[FieldTypeVar] lsst.pex.config.listField.List.__getitem__ | ( | self, | |
slice | i ) |
Definition at line 183 of file listField.py.
lsst.pex.config.listField.List.__iter__ | ( | self | ) |
Definition at line 197 of file listField.py.
lsst.pex.config.listField.List.__len__ | ( | self | ) |
Definition at line 141 of file listField.py.
lsst.pex.config.listField.List.__ne__ | ( | self, | |
other ) |
Definition at line 242 of file listField.py.
lsst.pex.config.listField.List.__reduce__ | ( | self | ) |
Definition at line 257 of file listField.py.
lsst.pex.config.listField.List.__repr__ | ( | self | ) |
Definition at line 223 of file listField.py.
lsst.pex.config.listField.List.__setattr__ | ( | self, | |
attr, | |||
value, | |||
at = None, | |||
label = "assignment" ) |
Definition at line 245 of file listField.py.
lsst.pex.config.listField.List.__setitem__ | ( | self, | |
i, | |||
x, | |||
at = None, | |||
label = "setitem", | |||
setHistory = True ) |
Definition at line 159 of file listField.py.
None lsst.pex.config.listField.List.__setitem__ | ( | self, | |
int | i, | ||
FieldTypeVar | x, | ||
Any | at = None, | ||
str | label = "setitem", | ||
bool | setHistory = True ) |
Definition at line 145 of file listField.py.
None lsst.pex.config.listField.List.__setitem__ | ( | self, | |
slice | i, | ||
Iterable[FieldTypeVar] | x, | ||
Any | at = None, | ||
str | label = "setitem", | ||
bool | setHistory = True ) |
Definition at line 150 of file listField.py.
lsst.pex.config.listField.List.__str__ | ( | self | ) |
Definition at line 226 of file listField.py.
|
protected |
Definition at line 93 of file listField.py.
lsst.pex.config.listField.List.insert | ( | self, | |
i, | |||
x, | |||
at = None, | |||
label = "insert", | |||
setHistory = True ) |
Insert an item into the list at the given index. Parameters ---------- i : `int` Index where the item is inserted. x : object Item that is inserted. at : `list` of `~lsst.pex.config.callStack.StackFrame` or `None`,\ optional The call stack (created by `lsst.pex.config.callStack.getCallStack`). label : `str`, optional Event label for the history. setHistory : `bool`, optional Enable setting the field's history, using the value of the ``at`` parameter. Default is `True`.
Definition at line 200 of file listField.py.
lsst.pex.config.listField.List.list | ( | self | ) |
Sequence of items contained by the `List` (`list`).
Definition at line 130 of file listField.py.
lsst.pex.config.listField.List.validateItem | ( | self, | |
i, | |||
x ) |
Validate an item to determine if it can be included in the list. Parameters ---------- i : `int` Index of the item in the `list`. x : object Item in the `list`. Raises ------ FieldValidationError Raised if an item in the ``value`` parameter does not have the appropriate type for this field or does not pass the field's `ListField.itemCheck` method.
Definition at line 100 of file listField.py.
|
protected |
Definition at line 124 of file listField.py.
|
protected |
Definition at line 78 of file listField.py.
|
protected |
Definition at line 77 of file listField.py.
|
protected |
Definition at line 79 of file listField.py.
|
protected |
Definition at line 80 of file listField.py.
|
static |
Definition at line 134 of file listField.py.